File tree Expand file tree Collapse file tree
BlazorExpress.ChartJS.Demo.RCL/Pages/Demos Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<LineChart @ref =" lineChart" Width =" 600" />
22
33<div class =" mt-5" >
4- <button class = " btn btn-primary btn-sm " @onclick =" async () => await RandomizeAsync() " > Randomize </button >
5- <button class = " btn btn-primary btn-sm " @onclick =" async () => await AddDatasetAsync() " > Add Dataset </button >
6- <button class = " btn btn-primary btn-sm " @onclick =" async () => await AddDataAsync() " > Add Data </button >
7- <button class = " btn btn-primary btn-sm " @onclick =" async () => await ShowHorizontalLineChartAsync() " > Horizontal Line Chart </button >
8- <button class = " btn btn-primary btn-sm " @onclick =" async () => await ShowVerticalLineChartAsync() " > Vertical Line Chart </button >
4+ <Button Color = " ButtonColor.Primary " Size = " ButtonSize.Small " @onclick =" RandomizeAsync" > Randomize </Button >
5+ <Button Color = " ButtonColor.Link " Size = " ButtonSize.Small " @onclick =" AddDatasetAsync" > Add Dataset </Button >
6+ <Button Color = " ButtonColor.Info " Size = " ButtonSize.Small " @onclick =" AddDataAsync" > Add Data </Button >
7+ <Button Color = " ButtonColor.Success " Size = " ButtonSize.Small " @onclick =" ShowHorizontalLineChartAsync" > Horizontal Line Chart </Button >
8+ <Button Color = " ButtonColor.Warning " Size = " ButtonSize.Small " @onclick =" ShowVerticalLineChartAsync" > Vertical Line Chart </Button >
99</div >
1010
1111@code {
Original file line number Diff line number Diff line change 11<LineChart @ref =" lineChart" Width =" 600" />
22
33<div class =" mt-5" >
4- <button class = " btn btn-primary btn-sm " @onclick =" async () => await ChangeTicksAlignmentToStart() " > Alignment: start </button >
5- <button class = " btn btn-primary btn-sm " @onclick =" async () => await ChangeTicksAlignmentToCenter() " > Alignment: center (default) </button >
6- <button class = " btn btn-primary btn-sm " @onclick =" async () => await ChangeTicksAlignmentToEnd() " > Alignment: end </button >
4+ <Button Color = " ButtonColor.Primary " Size = " ButtonSize.Small " @onclick =" ChangeTicksAlignmentToStart" > Alignment: start </Button >
5+ <Button Color = " ButtonColor.Link " Size = " ButtonSize.Small " @onclick =" ChangeTicksAlignmentToCenter" > Alignment: center (default) </Button >
6+ <Button Color = " ButtonColor.Info " Size = " ButtonSize.Small " @onclick =" ChangeTicksAlignmentToEnd" > Alignment: end </Button >
77</div >
88
99@code {
2222 lineChartOptions = new () { Responsive = true , Interaction = new Interaction { Mode = InteractionMode .Index } };
2323
2424 // set ticks color
25- lineChartOptions .Scales .X ! .Ticks = new ChartAxesTicks { Color = " red " };
25+ lineChartOptions .Scales .X ! .Ticks = new ChartAxesTicks { Color = ColorUtility . CategoricalTwelveColors [ 0 ] };
2626 lineChartOptions .Scales .Y ! .Ticks = new ChartAxesTicks { Color = ColorUtility .CategoricalTwelveColors [4 ] };
2727 }
2828
Original file line number Diff line number Diff line change 11<PieChart @ref =" pieChart" Width =" 600" />
22
33<div class =" mt-5" >
4- <button class = " btn btn-primary btn-sm " @onclick =" async () => await RandomizeAsync() " > Randomize </button >
5- <button class = " btn btn-primary btn-sm " @onclick =" async () => await AddDatasetAsync() " > Add Dataset </button >
6- <button class = " btn btn-primary btn-sm " @onclick =" async () => await AddDataAsync() " >Add Data</button >
4+ <Button Color = " ButtonColor.Primary " Size = " ButtonSize.Small " @onclick =" RandomizeAsync" > Randomize </Button >
5+ <Button Color = " ButtonColor.Link " Size = " ButtonSize.Small " @onclick =" AddDatasetAsync" > Add Dataset </Button >
6+ <Button Color = " ButtonColor.Info " Size = " ButtonSize.Small " @onclick =" AddDataAsync" >Add Data</Button >
77</div >
88
99@code {
Original file line number Diff line number Diff line change 11<PieChart @ref =" pieChart" Width =" 600" />
22
33<div class =" mt-5" >
4- <button class = " btn btn-primary btn-sm " @onclick =" async () => await RandomizeAsync() " > Randomize </button >
5- <button class = " btn btn-primary btn-sm " @onclick =" async () => await AddDataAsync() " >Add Data</button >
4+ <Button Color = " ButtonColor.Primary " Size = " ButtonSize.Small " @onclick =" RandomizeAsync" > Randomize </Button >
5+ <Button Color = " ButtonColor.Info " Size = " ButtonSize.Small " @onclick =" AddDataAsync" >Add Data</Button >
66</div >
77
88@code {
Original file line number Diff line number Diff line change 11<PieChart @ref =" pieChart" Width =" 600" />
22
33<div class =" mt-5" >
4- <button class = " btn btn-primary btn-sm " @onclick =" PositionTopAsync" > Position: top </button >
5- <button class = " btn btn-primary btn-sm " @onclick =" PositionRightAsync" > Position: right </button >
6- <button class = " btn btn-primary btn-sm " @onclick =" PositionBottomAsync" > Position: bottom </button >
7- <button class = " btn btn-primary btn-sm " @onclick =" PositionLeftAsync" > Position: left </button >
4+ <Button Color = " ButtonColor.Primary " Size = " ButtonSize.Small " @onclick =" PositionTopAsync" > Position: top </Button >
5+ <Button Color = " ButtonColor.Link " Size = " ButtonSize.Small " @onclick =" PositionRightAsync" > Position: right </Button >
6+ <Button Color = " ButtonColor.Info " Size = " ButtonSize.Small " @onclick =" PositionBottomAsync" > Position: bottom </Button >
7+ <Button Color = " ButtonColor.Warning " Size = " ButtonSize.Small " @onclick =" PositionLeftAsync" > Position: left </Button >
88</div >
99
1010@code {
You can’t perform that action at this time.
0 commit comments