Commit ab4187a
authored
Charts enhancements (#19)
* Bar Chart: Border radius demos added.
* LineChart: Interpolation modes demo added.
* Update BubbleChartDataset styling for better visuals
Changed BackgroundColor to use ToRgbaString(0.5) for transparency
and reduced BorderWidth from 3 to 1 for a cleaner appearance.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Refactor chart documentation for improved clarity
Updated various chart components' documentation to replace unordered lists with ordered lists in the "How to use" sections. Reformatted "Locale" sections for Bar Chart and Line Chart to enhance readability. Added ordered lists to "How it works" sections for Radar Chart and Scatter Chart. Improved visual separation with additional spacing throughout the documentation.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Enhance LineChart documentation and add Segment property
Updated the "Interpolation Modes" section in `LineChartDocumentation.razor` with detailed usage instructions for the `LineChart` component.
Introduced a new `Segment` property in `LineChartDataset.cs` for customizing line segment styles, along with comprehensive documentation linking to Chart.js resources.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Add animation support to BarChart components and docs
This commit introduces new sections in the `BarChartDocumentation.razor` file to document animations related to chart delays, including "Animations - Delay" and "Animations - DataSet level delay".
New `Animation` properties of type `ChartAnimation?` are added to the `ChartDataset<TData>` and `ChartOptions` classes, allowing for configurable animations with detailed XML documentation.
The `ChartAnimation` class is introduced, featuring properties like `Delay`, `Duration`, `Easing`, and `Loop`, each with comprehensive documentation.
Demo files `BarChart_Demo_07_Animations_A_Delay.razor` and `BarChart_Demo_08_Animations_B_DataSet_Level_Delay.razor` are updated to showcase animation settings, with the first demo applying a global delay and the second demonstrating dataset-level customization.
Additionally, several properties in the `ChartOptions` class have had their `[Parameter]` attributes removed, reflecting a change in their intended usage.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Enhance BarChart documentation for animation demos
Updated `BarChartDocumentation.razor` to replace placeholder text with detailed descriptions for the "Animations - Delay" and "Animations - DataSet Level Delay" demos. The new content provides clear instructions on usage and highlights the benefits of animation delays in Bar Charts.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Enhance BarChart documentation for Border Radius feature
Updated the `BarChartDocumentation.razor` file to replace the placeholder comment with a detailed description of the "Border Radius" feature. The new content includes benefits, implementation instructions, and customization options for using the `BorderRadius` property, providing clearer guidance for users.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Add Animation property to ChartDataset and ChartOptions
The `Animation` property of type `ChartAnimation?` has been added to both the `ChartDataset<TData>` and `ChartOptions` classes. This property includes XML documentation detailing its purpose and default value, along with a link to the Chart.js animations configuration documentation. Metadata attributes such as `[AddedVersion("1.2.0")]`, `[DefaultValue(null)]`, and `[Description(...)]` have also been included.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Refactor chart options and initialization logic
- Added `chartData` variable in `LineChart_Demo_05_Interpolation_Modes.razor` and removed `datapoints`.
- Updated `BarChartOptions.cs` to reintroduce `Parameter` attributes for `IndexAxis`, `Interaction`, `Layout`, `Plugins`, and `Scales`.
- Modified `ChartOptions.cs` to treat `Locale`, `MaintainAspectRatio`, and `Responsive` as parameters by removing the `Parameter` attribute.
- Adjusted `ChartLayout` properties `AutoPadding` and `Padding` to reflect changes in parameter usage.
These changes enhance the usability and clarity of chart configurations in the application.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Update imageUrl references in chart documentation
Replaced hardcoded Imgur URLs with constants from
DemoImageSrcConstants across multiple Blazor chart
component documentation files. This standardizes
image references, simplifying future management and
updates.
NOTE: This commit message is auto-generated using GitHub Copilot.
* Update version to 1.2.0 and modify documentation
Updated the application version from `1.1.0` to `1.2.0` in `appsettings.json` and adjusted the `BlazorExpress.ChartJS.csproj` file to reflect the new versioning. The README.md has been updated to change the NuGet installation command to the latest version, ensuring users have the most current package.
NOTE: This commit message is auto-generated using GitHub Copilot.1 parent e2bfc2f commit ab4187a
30 files changed
Lines changed: 704 additions & 159 deletions
File tree
- BlazorExpress.ChartJS.Demo.RCL/Pages
- Demos
- BarChart
- BubbleChart
- DoughnutChart
- LineChart
- PieChart
- PolarAreaChart
- RadarChart
- ScatterChart
- Docs
- BarChart
- BubbleChart
- DoughnutChart
- LineChart
- PieChart
- PolarAreaChart
- RadarChart
- ScatterChart
- BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot
- BlazorExpress.ChartJS
- Models
- ChartDataset
- BarChart
- LineChart
- ChartOptions
- nuget
Lines changed: 87 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
81 | | - | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
93 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
94 | 157 | | |
95 | 158 | | |
96 | 159 | | |
97 | 160 | | |
98 | 161 | | |
99 | 162 | | |
100 | 163 | | |
101 | | - | |
| 164 | + | |
102 | 165 | | |
Lines changed: 125 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments