diff --git a/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Horizontal.razor b/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Horizontal.razor
index c8f58df9..9d4443fe 100644
--- a/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Horizontal.razor
+++ b/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Horizontal.razor
@@ -1,5 +1,5 @@
@page "/charts/bar/horizontal"
-@using ChartJS.BarChart
+@using ChartJs.Blazor.BarChart
@using System.Drawing
@layout SampleLayout
diff --git a/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Stacked.razor b/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Stacked.razor
index 37e0d5d2..48dd69e1 100644
--- a/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Stacked.razor
+++ b/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Stacked.razor
@@ -1,6 +1,6 @@
@page "/charts/bar/stacked"
-@using ChartJS.BarChart
-@using ChartJs.Blazor.ChartJS.BarChart.Axes
+@using ChartJs.Blazor.BarChart
+@using ChartJs.Blazor.BarChart.Axes
@layout SampleLayout
diff --git a/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Vertical.razor b/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Vertical.razor
index 28e53407..7cd50066 100644
--- a/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Vertical.razor
+++ b/ChartJs.Blazor.Samples/Client/Pages/Charts/Bar/Vertical.razor
@@ -1,5 +1,5 @@
@page "/charts/bar/vertical"
-@using ChartJS.BarChart
+@using ChartJs.Blazor.BarChart
@using System.Drawing
@layout SampleLayout
diff --git a/ChartJs.Blazor.Samples/Client/Pages/Charts/Line/Basic.razor b/ChartJs.Blazor.Samples/Client/Pages/Charts/Line/Basic.razor
index 9c2e524c..d347c8db 100644
--- a/ChartJs.Blazor.Samples/Client/Pages/Charts/Line/Basic.razor
+++ b/ChartJs.Blazor.Samples/Client/Pages/Charts/Line/Basic.razor
@@ -1,5 +1,5 @@
@page "/charts/line/basic"
-@using ChartJS.LineChart
+@using ChartJs.Blazor.LineChart
@layout SampleLayout
diff --git a/ChartJs.Blazor.Samples/Client/_Imports.razor b/ChartJs.Blazor.Samples/Client/_Imports.razor
index 78befd47..25991866 100644
--- a/ChartJs.Blazor.Samples/Client/_Imports.razor
+++ b/ChartJs.Blazor.Samples/Client/_Imports.razor
@@ -8,14 +8,13 @@
@using ChartJs.Blazor.Samples.Client
@using ChartJs.Blazor.Samples.Client.Shared
@using ChartJs.Blazor.Samples.Shared
-@using ChartJS.Common
-@using ChartJS.Common.Axes
-@using ChartJS.Common.Axes.Ticks
-@using ChartJS.Common.Enums
-@using ChartJS.Common.Properties
-@using ChartJS.Common.Handlers
-@using ChartJS.Common.Time
-@using ChartJs.Blazor.Charts
+@using ChartJs.Blazor
+@using ChartJs.Blazor.Common
+@using ChartJs.Blazor.Common.Axes
+@using ChartJs.Blazor.Common.Axes.Ticks
+@using ChartJs.Blazor.Common.Enums
+@using ChartJs.Blazor.Common.Handlers
+@using ChartJs.Blazor.Common.Time
@using ChartJs.Blazor.Util
@using ChartJs.Blazor.Interop
@using static ChartJs.Blazor.Samples.Shared.SampleUtils
diff --git a/ChartJs.Blazor.Tests/ClippingTests.Deserialization.cs b/ChartJs.Blazor.Tests/ClippingTests.Deserialization.cs
index cb07e407..b1191240 100644
--- a/ChartJs.Blazor.Tests/ClippingTests.Deserialization.cs
+++ b/ChartJs.Blazor.Tests/ClippingTests.Deserialization.cs
@@ -1,5 +1,5 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.LineChart;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.LineChart;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
diff --git a/ChartJs.Blazor.Tests/ClippingTests.Equality.cs b/ChartJs.Blazor.Tests/ClippingTests.Equality.cs
index 59b096f5..01c654a7 100644
--- a/ChartJs.Blazor.Tests/ClippingTests.Equality.cs
+++ b/ChartJs.Blazor.Tests/ClippingTests.Equality.cs
@@ -1,5 +1,5 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.LineChart;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.LineChart;
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/ChartJs.Blazor.Tests/ClippingTests.Serialization.cs b/ChartJs.Blazor.Tests/ClippingTests.Serialization.cs
index d710686d..2022173c 100644
--- a/ChartJs.Blazor.Tests/ClippingTests.Serialization.cs
+++ b/ChartJs.Blazor.Tests/ClippingTests.Serialization.cs
@@ -1,5 +1,5 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.LineChart;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.LineChart;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
diff --git a/ChartJs.Blazor.Tests/ObjectEnumTests.Deserialization.cs b/ChartJs.Blazor.Tests/ObjectEnumTests.Deserialization.cs
index 9a54ecf4..871b6523 100644
--- a/ChartJs.Blazor.Tests/ObjectEnumTests.Deserialization.cs
+++ b/ChartJs.Blazor.Tests/ObjectEnumTests.Deserialization.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
@@ -119,4 +119,4 @@ public void Deserialize_Undefined_ReturnsNull()
Assert.Null(objEnum);
}
}
-}
\ No newline at end of file
+}
diff --git a/ChartJs.Blazor.Tests/ObjectEnumTests.Equality.cs b/ChartJs.Blazor.Tests/ObjectEnumTests.Equality.cs
index a495d1a0..bf4976a5 100644
--- a/ChartJs.Blazor.Tests/ObjectEnumTests.Equality.cs
+++ b/ChartJs.Blazor.Tests/ObjectEnumTests.Equality.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
@@ -242,4 +242,4 @@ public void GetHashCode_EnumAndEnum_Equals(object value)
Assert.Equal(hashA, hashB);
}
}
-}
\ No newline at end of file
+}
diff --git a/ChartJs.Blazor.Tests/ObjectEnumTests.General.cs b/ChartJs.Blazor.Tests/ObjectEnumTests.General.cs
index 5d5f498b..e2397ace 100644
--- a/ChartJs.Blazor.Tests/ObjectEnumTests.General.cs
+++ b/ChartJs.Blazor.Tests/ObjectEnumTests.General.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
diff --git a/ChartJs.Blazor.Tests/ObjectEnumTests.Serialization.cs b/ChartJs.Blazor.Tests/ObjectEnumTests.Serialization.cs
index 53ba9234..aacfc2d0 100644
--- a/ChartJs.Blazor.Tests/ObjectEnumTests.Serialization.cs
+++ b/ChartJs.Blazor.Tests/ObjectEnumTests.Serialization.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
@@ -102,4 +102,4 @@ public void Serialize_BoolEnum_AsRoot(bool value)
Assert.Equal(escapedValue, serialized);
}
}
-}
\ No newline at end of file
+}
diff --git a/ChartJs.Blazor.Tests/ObjectEnumTests.TestClasses.cs b/ChartJs.Blazor.Tests/ObjectEnumTests.TestClasses.cs
index a7628fe7..16d982dc 100644
--- a/ChartJs.Blazor.Tests/ObjectEnumTests.TestClasses.cs
+++ b/ChartJs.Blazor.Tests/ObjectEnumTests.TestClasses.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
@@ -45,4 +45,4 @@ private class EnumWithoutConstructor : ObjectEnum
private EnumWithoutConstructor(object value) : base(value) { }
}
}
-}
\ No newline at end of file
+}
diff --git a/ChartJs.Blazor.Tests/StringEnumTests.Deserialization.cs b/ChartJs.Blazor.Tests/StringEnumTests.Deserialization.cs
index df1e6f2f..dcf6d4e9 100644
--- a/ChartJs.Blazor.Tests/StringEnumTests.Deserialization.cs
+++ b/ChartJs.Blazor.Tests/StringEnumTests.Deserialization.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
diff --git a/ChartJs.Blazor.Tests/StringEnumTests.Equality.cs b/ChartJs.Blazor.Tests/StringEnumTests.Equality.cs
index 1f0875f5..dddb0882 100644
--- a/ChartJs.Blazor.Tests/StringEnumTests.Equality.cs
+++ b/ChartJs.Blazor.Tests/StringEnumTests.Equality.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
diff --git a/ChartJs.Blazor.Tests/StringEnumTests.General.cs b/ChartJs.Blazor.Tests/StringEnumTests.General.cs
index 3a54edfb..3e38a315 100644
--- a/ChartJs.Blazor.Tests/StringEnumTests.General.cs
+++ b/ChartJs.Blazor.Tests/StringEnumTests.General.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
diff --git a/ChartJs.Blazor.Tests/StringEnumTests.Serialization.cs b/ChartJs.Blazor.Tests/StringEnumTests.Serialization.cs
index aa06e268..67ef20bb 100644
--- a/ChartJs.Blazor.Tests/StringEnumTests.Serialization.cs
+++ b/ChartJs.Blazor.Tests/StringEnumTests.Serialization.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
diff --git a/ChartJs.Blazor.Tests/StringEnumTests.TestClasses.cs b/ChartJs.Blazor.Tests/StringEnumTests.TestClasses.cs
index 3a72d242..3ae2b6df 100644
--- a/ChartJs.Blazor.Tests/StringEnumTests.TestClasses.cs
+++ b/ChartJs.Blazor.Tests/StringEnumTests.TestClasses.cs
@@ -1,4 +1,4 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using Newtonsoft.Json;
using System;
using System.Globalization;
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarCategoryAxis.cs b/src/ChartJs.Blazor/BarChart/Axes/BarCategoryAxis.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarCategoryAxis.cs
rename to src/ChartJs.Blazor/BarChart/Axes/BarCategoryAxis.cs
index 1f3a6d1a..e069e9d2 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarCategoryAxis.cs
+++ b/src/ChartJs.Blazor/BarChart/Axes/BarCategoryAxis.cs
@@ -1,8 +1,8 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Axes;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Axes;
-namespace ChartJs.Blazor.ChartJS.BarChart.Axes
+namespace ChartJs.Blazor.BarChart.Axes
{
///
/// Extended version of for use in a bar chart.
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarLinearCartesianAxis.cs b/src/ChartJs.Blazor/BarChart/Axes/BarLinearCartesianAxis.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarLinearCartesianAxis.cs
rename to src/ChartJs.Blazor/BarChart/Axes/BarLinearCartesianAxis.cs
index 96878ac0..439dbb67 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarLinearCartesianAxis.cs
+++ b/src/ChartJs.Blazor/BarChart/Axes/BarLinearCartesianAxis.cs
@@ -1,7 +1,7 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Axes;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Axes;
-namespace ChartJs.Blazor.ChartJS.BarChart.Axes
+namespace ChartJs.Blazor.BarChart.Axes
{
///
/// Extended version of for use in a bar chart.
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarLogarithmicAxis.cs b/src/ChartJs.Blazor/BarChart/Axes/BarLogarithmicAxis.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarLogarithmicAxis.cs
rename to src/ChartJs.Blazor/BarChart/Axes/BarLogarithmicAxis.cs
index 93de986a..bc874a27 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarLogarithmicAxis.cs
+++ b/src/ChartJs.Blazor/BarChart/Axes/BarLogarithmicAxis.cs
@@ -1,7 +1,7 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Axes;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Axes;
-namespace ChartJs.Blazor.ChartJS.BarChart.Axes
+namespace ChartJs.Blazor.BarChart.Axes
{
///
/// Extended version of for use in a bar chart.
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarTimeAxis.cs b/src/ChartJs.Blazor/BarChart/Axes/BarTimeAxis.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarTimeAxis.cs
rename to src/ChartJs.Blazor/BarChart/Axes/BarTimeAxis.cs
index f50b01af..89d91ae1 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/BarTimeAxis.cs
+++ b/src/ChartJs.Blazor/BarChart/Axes/BarTimeAxis.cs
@@ -1,7 +1,7 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Axes;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Axes;
-namespace ChartJs.Blazor.ChartJS.BarChart.Axes
+namespace ChartJs.Blazor.BarChart.Axes
{
///
/// Extended version of for use in a bar chart.
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/ExtendedCartesianAxes.tt b/src/ChartJs.Blazor/BarChart/Axes/ExtendedCartesianAxes.tt
similarity index 95%
rename from src/ChartJs.Blazor/ChartJS/BarChart/Axes/ExtendedCartesianAxes.tt
rename to src/ChartJs.Blazor/BarChart/Axes/ExtendedCartesianAxes.tt
index f5169a75..85f09873 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/Axes/ExtendedCartesianAxes.tt
+++ b/src/ChartJs.Blazor/BarChart/Axes/ExtendedCartesianAxes.tt
@@ -10,10 +10,10 @@
{
string className = "Bar" + baseName;
#>
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Axes;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Axes;
-namespace ChartJs.Blazor.ChartJS.BarChart.Axes
+namespace ChartJs.Blazor.BarChart.Axes
{
///
/// Extended version of for use in a bar chart.
@@ -91,11 +91,11 @@ namespace ChartJs.Blazor.ChartJS.BarChart.Axes
}
#>
<#+
-private void SaveOutput(string outputFileName)
+private void SaveOutput(string outputFileName)
{
string templateDirectory = Path.GetDirectoryName(Host.TemplateFile);
string outputFilePath = Path.Combine(templateDirectory, outputFileName);
- File.WriteAllText(outputFilePath, this.GenerationEnvironment.ToString());
+ File.WriteAllText(outputFilePath, this.GenerationEnvironment.ToString());
this.GenerationEnvironment.Remove(0, this.GenerationEnvironment.Length);
}
-#>
\ No newline at end of file
+#>
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/BarConfig.cs b/src/ChartJs.Blazor/BarChart/BarConfig.cs
similarity index 74%
rename from src/ChartJs.Blazor/ChartJS/BarChart/BarConfig.cs
rename to src/ChartJs.Blazor/BarChart/BarConfig.cs
index 7c73c1a2..904df5cc 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/BarConfig.cs
+++ b/src/ChartJs.Blazor/BarChart/BarConfig.cs
@@ -1,7 +1,7 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
///
/// Config for a .
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/BarDataset.cs b/src/ChartJs.Blazor/BarChart/BarDataset.cs
similarity index 98%
rename from src/ChartJs.Blazor/ChartJS/BarChart/BarDataset.cs
rename to src/ChartJs.Blazor/BarChart/BarDataset.cs
index 661b6acd..3193082b 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/BarDataset.cs
+++ b/src/ChartJs.Blazor/BarChart/BarDataset.cs
@@ -1,10 +1,10 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Enums;
using ChartJs.Blazor.Util;
using Newtonsoft.Json;
using System.Collections.Generic;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
///
/// Represents a dataset for a bar chart.
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/BarOptions.cs b/src/ChartJs.Blazor/BarChart/BarOptions.cs
similarity index 74%
rename from src/ChartJs.Blazor/ChartJS/BarChart/BarOptions.cs
rename to src/ChartJs.Blazor/BarChart/BarOptions.cs
index 410092ff..50ea76a2 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/BarOptions.cs
+++ b/src/ChartJs.Blazor/BarChart/BarOptions.cs
@@ -1,7 +1,6 @@
-using ChartJs.Blazor.Charts;
-using ChartJs.Blazor.ChartJS.Common;
+using ChartJs.Blazor.Common;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
///
/// The options-subconfig of a .
@@ -13,4 +12,4 @@ public class BarOptions : BaseConfigOptions
///
public BarScales Scales { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/BarScales.cs b/src/ChartJs.Blazor/BarChart/BarScales.cs
similarity index 90%
rename from src/ChartJs.Blazor/ChartJS/BarChart/BarScales.cs
rename to src/ChartJs.Blazor/BarChart/BarScales.cs
index 7b0e1619..f60f222b 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/BarScales.cs
+++ b/src/ChartJs.Blazor/BarChart/BarScales.cs
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Newtonsoft.Json;
-using ChartJs.Blazor.ChartJS.Common.Axes;
+using ChartJs.Blazor.Common.Axes;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
///
/// Defines the scales for bar charts by holding the x and y axes.
@@ -11,7 +11,7 @@ public class BarScales
{
///
/// Gets or sets the configurations for the x-axes.
- /// You can use any but there are extended axes in the namespace which contain additional properties to customize the bar chart axes.
+ /// You can use any but there are extended axes in the namespace which contain additional properties to customize the bar chart axes.
///
[JsonProperty("xAxes")]
public IList XAxes { get; set; }
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/BarThickness.cs b/src/ChartJs.Blazor/BarChart/BarThickness.cs
similarity index 90%
rename from src/ChartJs.Blazor/ChartJS/BarChart/BarThickness.cs
rename to src/ChartJs.Blazor/BarChart/BarThickness.cs
index 5e2076e3..139c838f 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/BarThickness.cs
+++ b/src/ChartJs.Blazor/BarChart/BarThickness.cs
@@ -1,9 +1,9 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
///
- /// The bar thickness used to customize all bar axes (extended cartesian axes in ).
+ /// The bar thickness used to customize all bar axes (extended cartesian axes in ).
/// As per documentation here https://www.chartjs.org/docs/latest/charts/bar.html#barthickness
///
public class BarThickness : ObjectEnum
@@ -34,7 +34,7 @@ private BarThickness(double doubleValue) : base(doubleValue) { }
public static implicit operator BarThickness(double thickness) => new BarThickness(thickness);
///
- /// If set to , the base sample widths are calculated automatically
+ /// If set to , the base sample widths are calculated automatically
/// based on the previous and following samples so that they take the full available widths without overlap.
///
public static BarThickness Flex => new BarThickness("flex");
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/FloatingBarPoint.cs b/src/ChartJs.Blazor/BarChart/FloatingBarPoint.cs
similarity index 98%
rename from src/ChartJs.Blazor/ChartJS/BarChart/FloatingBarPoint.cs
rename to src/ChartJs.Blazor/BarChart/FloatingBarPoint.cs
index 779d4117..3617efc9 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/FloatingBarPoint.cs
+++ b/src/ChartJs.Blazor/BarChart/FloatingBarPoint.cs
@@ -1,7 +1,7 @@
using System;
using Newtonsoft.Json;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
///
/// Represents a floating bar within a bar chart (use in ).
diff --git a/src/ChartJs.Blazor/ChartJS/BarChart/FloatingBarPointConverter.cs b/src/ChartJs.Blazor/BarChart/FloatingBarPointConverter.cs
similarity index 95%
rename from src/ChartJs.Blazor/ChartJS/BarChart/FloatingBarPointConverter.cs
rename to src/ChartJs.Blazor/BarChart/FloatingBarPointConverter.cs
index 323ec340..7fb9469c 100644
--- a/src/ChartJs.Blazor/ChartJS/BarChart/FloatingBarPointConverter.cs
+++ b/src/ChartJs.Blazor/BarChart/FloatingBarPointConverter.cs
@@ -1,7 +1,7 @@
using System;
using Newtonsoft.Json;
-namespace ChartJs.Blazor.ChartJS.BarChart
+namespace ChartJs.Blazor.BarChart
{
internal class FloatingBarPointConverter : JsonConverter
{
diff --git a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleConfig.cs b/src/ChartJs.Blazor/BubbleChart/BubbleConfig.cs
similarity index 51%
rename from src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleConfig.cs
rename to src/ChartJs.Blazor/BubbleChart/BubbleConfig.cs
index f2c2f811..630ab632 100644
--- a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleConfig.cs
+++ b/src/ChartJs.Blazor/BubbleChart/BubbleConfig.cs
@@ -1,7 +1,7 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.BubbleChart
+namespace ChartJs.Blazor.BubbleChart
{
public class BubbleConfig : ConfigBase
{
diff --git a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleDataset.cs b/src/ChartJs.Blazor/BubbleChart/BubbleDataset.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleDataset.cs
rename to src/ChartJs.Blazor/BubbleChart/BubbleDataset.cs
index df5cf24a..998f3f24 100644
--- a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleDataset.cs
+++ b/src/ChartJs.Blazor/BubbleChart/BubbleDataset.cs
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Enums;
using ChartJs.Blazor.Util;
-namespace ChartJs.Blazor.ChartJS.BubbleChart
+namespace ChartJs.Blazor.BubbleChart
{
///
/// Represents a dataset for a bubble chart.
diff --git a/src/ChartJs.Blazor/BubbleChart/BubbleOptions.cs b/src/ChartJs.Blazor/BubbleChart/BubbleOptions.cs
new file mode 100644
index 00000000..19c297ea
--- /dev/null
+++ b/src/ChartJs.Blazor/BubbleChart/BubbleOptions.cs
@@ -0,0 +1,8 @@
+using ChartJs.Blazor.Common;
+
+namespace ChartJs.Blazor.BubbleChart
+{
+ public class BubbleOptions : BaseConfigOptions
+ {
+ }
+}
diff --git a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubblePoint.cs b/src/ChartJs.Blazor/BubbleChart/BubblePoint.cs
similarity index 97%
rename from src/ChartJs.Blazor/ChartJS/BubbleChart/BubblePoint.cs
rename to src/ChartJs.Blazor/BubbleChart/BubblePoint.cs
index 6215cb59..67277cb2 100644
--- a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubblePoint.cs
+++ b/src/ChartJs.Blazor/BubbleChart/BubblePoint.cs
@@ -1,6 +1,6 @@
using System;
-namespace ChartJs.Blazor.ChartJS.BubbleChart
+namespace ChartJs.Blazor.BubbleChart
{
///
/// Represents a bubble on a plane with an X, Y and radius value.
diff --git a/src/ChartJs.Blazor/Charts/Chart.razor b/src/ChartJs.Blazor/Chart.razor
similarity index 100%
rename from src/ChartJs.Blazor/Charts/Chart.razor
rename to src/ChartJs.Blazor/Chart.razor
diff --git a/src/ChartJs.Blazor/Charts/Chart.razor.cs b/src/ChartJs.Blazor/Chart.razor.cs
similarity index 96%
rename from src/ChartJs.Blazor/Charts/Chart.razor.cs
rename to src/ChartJs.Blazor/Chart.razor.cs
index 9b93c3a0..77b41445 100644
--- a/src/ChartJs.Blazor/Charts/Chart.razor.cs
+++ b/src/ChartJs.Blazor/Chart.razor.cs
@@ -1,11 +1,11 @@
-using ChartJs.Blazor.ChartJS.Common;
+using ChartJs.Blazor.Common;
using ChartJs.Blazor.Interop;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using System;
using System.Threading.Tasks;
-namespace ChartJs.Blazor.Charts
+namespace ChartJs.Blazor
{
///
/// Represents a ChartJs chart
diff --git a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleOptions.cs b/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleOptions.cs
deleted file mode 100644
index bf651478..00000000
--- a/src/ChartJs.Blazor/ChartJS/BubbleChart/BubbleOptions.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using ChartJs.Blazor.ChartJS.Common;
-
-namespace ChartJs.Blazor.ChartJS.BubbleChart
-{
- public class BubbleOptions : BaseConfigOptions
- {
- }
-}
\ No newline at end of file
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Properties/Animation.cs b/src/ChartJs.Blazor/Common/Animation.cs
similarity index 87%
rename from src/ChartJs.Blazor/ChartJS/Common/Properties/Animation.cs
rename to src/ChartJs.Blazor/Common/Animation.cs
index a5f1d537..d750c8b0 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Properties/Animation.cs
+++ b/src/ChartJs.Blazor/Common/Animation.cs
@@ -1,6 +1,6 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.Common.Properties
+namespace ChartJs.Blazor.Common
{
///
/// The animation-subconfig of .
@@ -22,4 +22,4 @@ public class Animation
// TODO OnProgress Callback called on each step of an animation.
// TODO OnComplete Callback called at the end of an animation.
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Properties/ArcAnimation.cs b/src/ChartJs.Blazor/Common/ArcAnimation.cs
similarity index 91%
rename from src/ChartJs.Blazor/ChartJS/Common/Properties/ArcAnimation.cs
rename to src/ChartJs.Blazor/Common/ArcAnimation.cs
index 4db2e0f5..f2bb377e 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Properties/ArcAnimation.cs
+++ b/src/ChartJs.Blazor/Common/ArcAnimation.cs
@@ -1,4 +1,4 @@
-namespace ChartJs.Blazor.ChartJS.Common.Properties
+namespace ChartJs.Blazor.Common
{
///
/// The animation-subconfig of the options for a radial chart.
@@ -17,4 +17,4 @@ public class ArcAnimation : Animation
///
public bool? AnimateScale { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/AngleLines.cs b/src/ChartJs.Blazor/Common/Axes/AngleLines.cs
similarity index 97%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/AngleLines.cs
rename to src/ChartJs.Blazor/Common/Axes/AngleLines.cs
index 63cd4171..72ae6fba 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/AngleLines.cs
+++ b/src/ChartJs.Blazor/Common/Axes/AngleLines.cs
@@ -1,6 +1,6 @@
using ChartJs.Blazor.Util;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// The angle lines sub-config of the linear-radial-axis-configuration (see ).
@@ -36,4 +36,4 @@ public class AngleLines
///
public double BorderDashOffset { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Axis.cs b/src/ChartJs.Blazor/Common/Axes/Axis.cs
similarity index 89%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Axis.cs
rename to src/ChartJs.Blazor/Common/Axes/Axis.cs
index 52caa0c0..d8a396a1 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Axis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Axis.cs
@@ -1,6 +1,6 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// As per documentation here https://www.chartjs.org/docs/latest/axes/#common-configuration.
@@ -8,7 +8,7 @@ namespace ChartJs.Blazor.ChartJS.Common.Axes
public abstract class Axis
{
///
- /// Controls the axis global visibility (visible when , hidden when ).
+ /// Controls the axis global visibility (visible when , hidden when ).
/// When display: , the axis is visible only if at least one associated dataset is visible.
///
public AxisDisplay Display { get; set; } = AxisDisplay.True;
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/CartesianAxis.cs b/src/ChartJs.Blazor/Common/Axes/CartesianAxis.cs
similarity index 90%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/CartesianAxis.cs
rename to src/ChartJs.Blazor/Common/Axes/CartesianAxis.cs
index 86f1e624..2c3eaaf5 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/CartesianAxis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/CartesianAxis.cs
@@ -1,9 +1,9 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
-using ChartJs.Blazor.ChartJS.LineChart;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Axes.Ticks;
+using ChartJs.Blazor.LineChart;
using Newtonsoft.Json;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// As per documentation here https://www.chartjs.org/docs/latest/axes/cartesian/#common-configuration
@@ -28,7 +28,7 @@ public abstract class CartesianAxis : Axis
public Position Position { get; set; }
///
- /// If true, extra space is added to the both edges and the axis is scaled to fit into the chart area.
+ /// If true, extra space is added to the both edges and the axis is scaled to fit into the chart area.
/// This is set to true for a category scale in a bar chart by default.
///
public bool Offset { get; set; } = false;
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/CategoryAxis.cs b/src/ChartJs.Blazor/Common/Axes/CategoryAxis.cs
similarity index 80%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/CategoryAxis.cs
rename to src/ChartJs.Blazor/Common/Axes/CategoryAxis.cs
index 14e23435..cc18917d 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/CategoryAxis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/CategoryAxis.cs
@@ -1,8 +1,8 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
-using ChartJs.Blazor.ChartJS.LineChart;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Axes.Ticks;
+using ChartJs.Blazor.LineChart;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// This axis is to be used when you want to display values for an axis.
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/LinearCartesianAxis.cs b/src/ChartJs.Blazor/Common/Axes/LinearCartesianAxis.cs
similarity index 78%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/LinearCartesianAxis.cs
rename to src/ChartJs.Blazor/Common/Axes/LinearCartesianAxis.cs
index 6e7f5d0e..0cd9f9b6 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/LinearCartesianAxis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/LinearCartesianAxis.cs
@@ -1,10 +1,10 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Axes.Ticks;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
- /// The linear scale is use to chart numerical data. It can be placed on either the x or y axis.
+ /// The linear scale is use to chart numerical data. It can be placed on either the x or y axis.
/// As the name suggests, linear interpolation is used to determine where a value lies on the axis.
/// As per documentation here https://www.chartjs.org/docs/latest/axes/cartesian/linear.html
///
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/LinearRadialAxis.cs b/src/ChartJs.Blazor/Common/Axes/LinearRadialAxis.cs
similarity index 93%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/LinearRadialAxis.cs
rename to src/ChartJs.Blazor/Common/Axes/LinearRadialAxis.cs
index 9da94412..3e7f56f7 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/LinearRadialAxis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/LinearRadialAxis.cs
@@ -1,6 +1,6 @@
-using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
+using ChartJs.Blazor.Common.Axes.Ticks;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// A linear radial axis.
@@ -32,4 +32,4 @@ public class LinearRadialAxis
///
public LinearRadialTicks Ticks { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/LogarithmicAxis.cs b/src/ChartJs.Blazor/Common/Axes/LogarithmicAxis.cs
similarity index 78%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/LogarithmicAxis.cs
rename to src/ChartJs.Blazor/Common/Axes/LogarithmicAxis.cs
index c4bfa7ec..70c57355 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/LogarithmicAxis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/LogarithmicAxis.cs
@@ -1,10 +1,10 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Axes.Ticks;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
- /// The logarithmic scale is use to chart numerical data. It can be placed on either the x or y axis.
+ /// The logarithmic scale is use to chart numerical data. It can be placed on either the x or y axis.
/// As the name suggests, logarithmic interpolation is used to determine where a value lies on the axis.
/// As per documentation here https://www.chartjs.org/docs/latest/axes/cartesian/logarithmic.html
///
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/PointLabels.cs b/src/ChartJs.Blazor/Common/Axes/PointLabels.cs
similarity index 90%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/PointLabels.cs
rename to src/ChartJs.Blazor/Common/Axes/PointLabels.cs
index de4e0a19..4f4a4c36 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/PointLabels.cs
+++ b/src/ChartJs.Blazor/Common/Axes/PointLabels.cs
@@ -1,8 +1,8 @@
-using ChartJs.Blazor.ChartJS.Common;
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common;
+using ChartJs.Blazor.Common.Enums;
using ChartJs.Blazor.Util;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// The point labels sub-config of the linear-radial-axis-configuration (see ).
@@ -32,4 +32,4 @@ public class PointLabels
///
public double LineHeight { get; set; } = 1.2;
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/ScaleLabel.cs b/src/ChartJs.Blazor/Common/Axes/ScaleLabel.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/ScaleLabel.cs
rename to src/ChartJs.Blazor/Common/Axes/ScaleLabel.cs
index fc6e5832..0f39afbe 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/ScaleLabel.cs
+++ b/src/ChartJs.Blazor/Common/Axes/ScaleLabel.cs
@@ -1,6 +1,6 @@
using ChartJs.Blazor.Util;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
/// Defines options for how to display an axis title.
@@ -37,4 +37,4 @@ public ScaleLabel(string labelString = null)
///
public int? FontSize { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/CartesianTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/CartesianTicks.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/CartesianTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/CartesianTicks.cs
index edc8a353..68d74ef1 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/CartesianTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/CartesianTicks.cs
@@ -1,4 +1,4 @@
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The base class for all tick mark configurations of cartesian axes (see ). Ticks-subconfig of .
@@ -23,7 +23,7 @@ public abstract class CartesianTicks : Ticks
public int? SampleSize { get; set; }
///
- /// If true, automatically calculates how many labels can be shown and hides labels accordingly.
+ /// If true, automatically calculates how many labels can be shown and hides labels accordingly.
/// Labels will be rotated up to maxRotation before skipping any. Turn off to show all labels no matter what.
///
public bool AutoSkip { get; set; } = true;
@@ -58,4 +58,4 @@ public abstract class CartesianTicks : Ticks
///
public bool? Mirror { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/CategoryTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/CategoryTicks.cs
similarity index 95%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/CategoryTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/CategoryTicks.cs
index 0a78e49a..0ec7489d 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/CategoryTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/CategoryTicks.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The ticks-subconfig of .
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LinearCartesianTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/LinearCartesianTicks.cs
similarity index 97%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LinearCartesianTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/LinearCartesianTicks.cs
index 1cb23126..22eb0c0f 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LinearCartesianTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/LinearCartesianTicks.cs
@@ -1,5 +1,5 @@
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The ticks-subconfig of .
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LinearRadialTicks .cs b/src/ChartJs.Blazor/Common/Axes/Ticks/LinearRadialTicks .cs
similarity index 97%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LinearRadialTicks .cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/LinearRadialTicks .cs
index dc9810ce..0f6cc07a 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LinearRadialTicks .cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/LinearRadialTicks .cs
@@ -1,7 +1,7 @@
-using ChartJs.Blazor.ChartJS.Common;
+using ChartJs.Blazor.Common;
using ChartJs.Blazor.Util;
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The ticks sub-config of the .
@@ -75,4 +75,4 @@ public class LinearRadialTicks : Ticks
///
public bool ShowLabelBackdrop { get; set; } = true;
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LogarithmicTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/LogarithmicTicks.cs
similarity index 86%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LogarithmicTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/LogarithmicTicks.cs
index 8b412c44..8c098d89 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/LogarithmicTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/LogarithmicTicks.cs
@@ -1,5 +1,5 @@
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The ticks-subconfig of . It has the same members as .
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/MajorTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/MajorTicks.cs
similarity index 90%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/MajorTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/MajorTicks.cs
index 10b38b03..e36bb234 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/MajorTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/MajorTicks.cs
@@ -1,5 +1,5 @@
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The major ticks sub-config of the tick-configuration (see ).
@@ -12,4 +12,4 @@ public class MajorTicks : SubTicks
///
public bool Enabled { get; set; } = false;
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/MinorTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/MinorTicks.cs
similarity index 85%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/MinorTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/MinorTicks.cs
index 88b47171..fc20f360 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/MinorTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/MinorTicks.cs
@@ -1,5 +1,5 @@
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The minor ticks sub-config of the tick-configuration (see ).
@@ -8,4 +8,4 @@ namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
public class MinorTicks : SubTicks
{
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/SubTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/SubTicks.cs
similarity index 92%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/SubTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/SubTicks.cs
index 3c47c173..65e0f1fc 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/SubTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/SubTicks.cs
@@ -1,7 +1,7 @@
using ChartJs.Blazor.Util;
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The ultimate base class for tick mark configurations.
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/Ticks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/Ticks.cs
similarity index 93%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/Ticks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/Ticks.cs
index d52d5ab1..9212f578 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/Ticks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/Ticks.cs
@@ -1,9 +1,9 @@
using ChartJs.Blazor.Util;
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Handlers;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Handlers;
using ChartJs.Blazor.Interop;
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The base class for all tick mark configurations. Ticks-subconfig of the common .
@@ -49,4 +49,4 @@ public abstract class Ticks : SubTicks
///
public IMethodHandler Callback { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/TimeTicks.cs b/src/ChartJs.Blazor/Common/Axes/Ticks/TimeTicks.cs
similarity index 75%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/TimeTicks.cs
rename to src/ChartJs.Blazor/Common/Axes/Ticks/TimeTicks.cs
index ecb04acc..88af8b03 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/Ticks/TimeTicks.cs
+++ b/src/ChartJs.Blazor/Common/Axes/Ticks/TimeTicks.cs
@@ -1,6 +1,6 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
-namespace ChartJs.Blazor.ChartJS.Common.Axes.Ticks
+namespace ChartJs.Blazor.Common.Axes.Ticks
{
///
/// The ticks-subconfig of a .
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Axes/TimeAxis.cs b/src/ChartJs.Blazor/Common/Axes/TimeAxis.cs
similarity index 82%
rename from src/ChartJs.Blazor/ChartJS/Common/Axes/TimeAxis.cs
rename to src/ChartJs.Blazor/Common/Axes/TimeAxis.cs
index 9763ea08..b3f06ce5 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Axes/TimeAxis.cs
+++ b/src/ChartJs.Blazor/Common/Axes/TimeAxis.cs
@@ -1,11 +1,11 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
-using ChartJs.Blazor.ChartJS.Common.Time;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Axes.Ticks;
+using ChartJs.Blazor.Common.Time;
-namespace ChartJs.Blazor.ChartJS.Common.Axes
+namespace ChartJs.Blazor.Common.Axes
{
///
- /// The time scale is used to display times and dates.
+ /// The time scale is used to display times and dates.
/// When building its ticks, it will automatically calculate the most comfortable unit base on the size of the scale.
/// As per documentation here https://www.chartjs.org/docs/latest/axes/cartesian/time.html
///
diff --git a/src/ChartJs.Blazor/ChartJS/Common/BaseConfigOptions.cs b/src/ChartJs.Blazor/Common/BaseConfigOptions.cs
similarity index 93%
rename from src/ChartJs.Blazor/ChartJS/Common/BaseConfigOptions.cs
rename to src/ChartJs.Blazor/Common/BaseConfigOptions.cs
index 4ee3d452..36bec107 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/BaseConfigOptions.cs
+++ b/src/ChartJs.Blazor/Common/BaseConfigOptions.cs
@@ -1,11 +1,10 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
-using ChartJs.Blazor.ChartJS.Common.Handlers;
-using ChartJs.Blazor.ChartJS.Common.Properties;
+using ChartJs.Blazor.Common.Enums;
+using ChartJs.Blazor.Common.Handlers;
using System;
using System.Collections.Generic;
using ChartJs.Blazor.Interop;
-namespace ChartJs.Blazor.ChartJS.Common
+namespace ChartJs.Blazor.Common
{
///
/// The base config for the options-subconfig of a chart.
@@ -24,7 +23,7 @@ public class BaseConfigOptions
public bool Responsive { get; set; } = true;
///
- /// Gets or sets the canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas).
+ /// Gets or sets the canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas).
/// Note that this option is ignored if the height is explicitly defined either as attribute (of the canvas) or via the style.
///
public double AspectRatio { get; set; } = 2;
@@ -58,7 +57,7 @@ public class BaseConfigOptions
/// Gets the plugin options. The key has to be the unique
/// identification of the plugin.
///
- /// Reference for chart.js plugin options:
+ /// Reference for chart.js plugin options:
///
///
///
diff --git a/src/ChartJs.Blazor/ChartJS/Common/ChartData.cs b/src/ChartJs.Blazor/Common/ChartData.cs
similarity index 96%
rename from src/ChartJs.Blazor/ChartJS/Common/ChartData.cs
rename to src/ChartJs.Blazor/Common/ChartData.cs
index f7df8296..b8c50e74 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/ChartData.cs
+++ b/src/ChartJs.Blazor/Common/ChartData.cs
@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
-using ChartJs.Blazor.ChartJS.Common;
+using ChartJs.Blazor.Common;
-namespace ChartJs.Blazor.ChartJS.Common
+namespace ChartJs.Blazor.Common
{
///
/// Represents the data-subconfig of any .
@@ -46,7 +46,7 @@ public ChartData()
///
///
public virtual IList YLabels { get; }
-
+
///
/// Gets the datasets displayed in this chart.
///
diff --git a/src/ChartJs.Blazor/ChartJS/Common/Clipping.cs b/src/ChartJs.Blazor/Common/Clipping.cs
similarity index 98%
rename from src/ChartJs.Blazor/ChartJS/Common/Clipping.cs
rename to src/ChartJs.Blazor/Common/Clipping.cs
index 0d41fd4e..514000ef 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/Clipping.cs
+++ b/src/ChartJs.Blazor/Common/Clipping.cs
@@ -7,12 +7,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
-namespace ChartJs.Blazor.ChartJS.Common
+namespace ChartJs.Blazor.Common
{
///
/// Represents how lines are clipped relative to the chart area.
/// As per documentation here (Chart.js).
- /// For any given edge:
+ /// For any given edge:
///
/// 0 means clipping at the chart area.
/// negative values mean clipping inside the chart area.
diff --git a/src/ChartJs.Blazor/ChartJS/Common/ConfigBase.cs b/src/ChartJs.Blazor/Common/ConfigBase.cs
similarity index 95%
rename from src/ChartJs.Blazor/ChartJS/Common/ConfigBase.cs
rename to src/ChartJs.Blazor/Common/ConfigBase.cs
index 9a649cb2..66ed5b70 100644
--- a/src/ChartJs.Blazor/ChartJS/Common/ConfigBase.cs
+++ b/src/ChartJs.Blazor/Common/ConfigBase.cs
@@ -1,8 +1,8 @@
-using ChartJs.Blazor.ChartJS.Common.Enums;
+using ChartJs.Blazor.Common.Enums;
using System;
using System.Collections.Generic;
-namespace ChartJs.Blazor.ChartJS.Common
+namespace ChartJs.Blazor.Common
{
///
/// Base class for chart-configs
@@ -37,7 +37,7 @@ protected ConfigBase(ChartType chartType)
/// since these plugins work mostly with method hooks and methods
/// can't be serialized. It could be supported, but just isn't yet.
///
- /// Reference for chart.js inline plugins:
+ /// Reference for chart.js inline plugins:
///
///
///
@@ -46,7 +46,7 @@ protected ConfigBase(ChartType chartType)
///
///
public IList