View Full Version : How can I draw a chart that doesn't have data points for some time periods?
6 Feb 2012, 8:50 PM
Take Line Chart in the demo as example. If only Apr, May and Jun have data points and the rest of them don't have data points, can I still have Jan to Dec on the X axis and show only the three data points for Apr, May, and Jun?
This is for GXT3.0Beta2.
8 Feb 2012, 7:07 PM
For a test, I've changed X axis from CategoryAxis to NumericAxis and added a large value at the end of my data set. I was hoping I could stretch the X axis to the right with this additional data point and then hide the data point and its line by defining a couple of renderers.
This didn't work for me because the GXT code seemed to scale the chart and put all data points together regardless how large the last data point was.
21 Feb 2012, 2:30 PM
This thread may be a help to you.
21 Feb 2012, 3:32 PM
If I understand your solution correctly, it requires to draw all data points for entire time range which could be a performance hit when I have a 30 day chart with 10 minutes between two data points - I have to create all data points with null values regardless how many data points I actually have.
Anyway, I appreciate your help. I recently got Sencha Support account from my company, so I will continue talking to you through my support account.
Powered by vBulletin® Version 4.1.5 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.