PDA

View Full Version : Line Chart



neerajnandwana
23 Feb 2010, 4:36 AM
How can i draw a line, as shown in attached image ?

Thanks in advance

neerajnandwana
23 Feb 2010, 9:37 PM
After trying too many ways, I am wondering, weather it's possible or not? (:|

neerajnandwana
23 Feb 2010, 10:49 PM
Solved :D
If you don't want to draw a line for the point, then just pass the value as string.
Check the below code snippet.



var store = new Ext.data.JsonStore({
fields:['name', 'visits', 'views'],
data: [
{name:'Jul 07', visits: 'none', views: 3000000},//it's work for any string
{name:'Aug 07', visits: 240000, views: 3500000},
{name:'Sep 07', visits: 355000, views: 4000000},
{name:'Oct 07', visits: 375000, views: 4200000},
{name:'Nov 07', visits: 490000, views: 4500000},
{name:'Dec 07', visits: 495000, views: 5800000},
{name:'Jan 08', visits: 520000, views: 6000000},
{name:'Feb 08', visits: 620000, views: 7500000}
]
});