Hi , I want to show data in bar chart like this pictureAttachment 24893
but after try for some hours I succeeded to show Attachment 24894
how can I make something like that in ext.net chart?
Printable View
Hi , I want to show data in bar chart like this pictureAttachment 24893
but after try for some hours I succeeded to show Attachment 24894
how can I make something like that in ext.net chart?
Hello @sahar2017! Welcome to Ext.NET forums!
First, you don't want a stacked chart, you want a simple column chart, like this:
- Charting - Column Chart
Then, you want to define a custom theme (or use one of the existing themes) to color the bars:
- Charts themes. The example is showing for a horizontal bar chart, but it is analogous in the vertical bar / column chart.
- Specifying the colors yourself. In this case, it fancies with gradient chart colors, you can just fall back to solid colors, by using an HTML color instead of the gradient references'url(#v-1)'
in the example.
To unstack the chart you can just drop theStacked="true"
property (or set it as false) in your<ext:ColumnSeries />
block.
I hope this helps!