PDA

View Full Version : Extjs bar chart



abhigudi
8 Oct 2014, 3:37 AM
Hi All

I was trying to implement bar chart using EXTJS 4 ,but i was facing some difficultly in understand
Below is the json format




{
"records": [{
"row": "legend 1",
"color": "#e4af9f",
"timestampData": [
['sample1', 1],
['sample2', 8]
]
},{
"row": "legend 2",
"color": "#6199c4",
"timestampData": [
['sample1', 1],
['sample2', 8]
]
}]
}



Here the row fields is dynamic .Now i want show this data on the bar chart .It was easily with highcharts but seems bit completed with extjs charts

please can anyone guide me through this.

slemmon
9 Oct 2014, 10:12 PM
Hi,

It might be helpful to see your code - what you've got so far. Can you share your code either here or at https://fiddle.sencha.com so the community can see how you're trying to use the data?

abhigudi
9 Oct 2014, 10:35 PM
Hi..

Thanks for the reply.
First of all i am struck with how to map the data in model for the charts.

it will be helpful for me to guide me how to start with this set of data from model mapping and then adding multiple series on dynamic basis based on the data from json.

Thanks
Abhishek

watertrac_dev
10 Oct 2014, 1:25 PM
Would something like this work?blc

abhigudi
15 Oct 2014, 11:23 PM
Thanks for the update.:)

Exactly but i need samples to be on the y-axis.
would be helpful if you guide how to have samples on y-axis.

Thanks
Abhishek