Releases: ipax77/pax.BlazorChartJs
Releases · ipax77/pax.BlazorChartJs
v0.9.1
v0.9.0
Full Changelog: https://github.com/ipax77/pax.BlazorChartJs/commits/v0.9.0
v0.9.0-preview2
Full Changelog: v0.9.0-preview...v0.9.0-preview2
v0.9.0-preview
- Added
ChartJsFunctionto reference registered JavaScript callbacks from C# chart configuration without serializing raw JavaScript.- Added callback module configuration and marker revival for chart initialization, option updates, and dataset add/update/set interop calls.
- Added scriptable callback support for datalabel formatters, axis ticks, tooltip callbacks, legend callbacks, and indexable color options.
- Expanded
IndexableOption<T>to support single values, indexed values, andChartJsFunctioncallback values.- Expanded
Paddingto support Chart.js numeric padding,{x, y}shorthand padding, and scriptable padding callbacks while preserving existingPadding?property types.- Added a scriptable padding sample with a sample-only
Latestlabel plugin.- Hardened callback resolution with flat JavaScript identifier validation and reserved-name checks.
- Updated sample callback charts to use a shared
chartJsCallbacks.jscallback registry.- Added missing global/core Chart.js options to
ChartJsOptions:BackgroundColor,BorderColor,Clip,Color,Datasets,Font,Hover,HoverBackgroundColor,HoverBorderColor,Normalized,OnClick,OnHover, andOnResize.- Added
ChartJsSetupOptions.Defaults/ChartJsDefaultsOptionsto configure app-wideChart.defaultsvalues throughAddChartJs(...).- Added
ChartJsOptionsDatasetsforoptions.datasetsandChart.defaults.datasetschart-type defaults.- Chart.js native
OnClick,OnHover, andOnResizecallbacks are preserved when the Blazor/C# event bridge flags are enabled.- Added
ChartJsConfig.SetDatasetsSmooth(...)to add, update, remove, and reorder datasets by id in one smooth batched chart update, with optional labels and current options update.
v0.8.8
v0.8.7
v0.8.6
v0.8.5
Full Changelog: v0.8.4...v0.8.5
v0.8.4
v0.8.3
What's Changed
- Microsoft.AspNetCore.Components.Web v8.0.2
- Added ChartJsConfig.UpdateDatasetsSmooth updates the ChartJs dataset(s), instead of replacing.
- Added BlazorLegendBase that can be used for a ChartJs Html Legend - [Sample][https://ipax77.github.io/pax.BlazorChartJs/htmllegendchart]
- Added ChartComponent.GetLegendItems()
- Added ChartComponent.IsDatasetVisible(int datasetIndex)
- Added ChartComponent.SetDatasetPointsActive(int datasetIndex)
- BarDataset.BarPercentage changed from int? to double?
- Renamed Layout to ChartJsLayout (CA1724)
IndexableOptionnow supports Collection Expressions e.g.
BorderColor = ["rgba(255, 99, 132, 1)", "rgba(54, 162, 235, 1)"],
BorderWidth = [1, 2]
- ChartJs v4.4.2 Tests
- Blazor App sample