-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there a way to create a date scale for the x axis? #736
Comments
Simple answer: you should generate full date values for xVals, and not insert data entry for those dates that don't have data. |
ok, thanks very much |
@skrite @liuxuan30 Hi, do I need to create multiple datasets to implement this feature? (1 for the chart, 2 for the fake xAxis labels) I tried to create 2 data sets and merge them. This is my code: //primary data set array will include both sets //1 data set: //2 data set //merge sets //populate chart with data //format labels As a result this code doesn't show fake set2, only set1. Could you please help me with that, what am I doing wrong? I also tried just create 1 set and add more xAxis labels in array, but it didn't solve the problem. |
Do I need to append my dataEntries with (0,0) values for those dates that don't have data? |
I solved the issue, just created two data sets, and fill second data sets with entries started x value from the last index of 1set. |
i am trying to chart the pressure of a transducer over the last week. However the transducer does not report at regular time intervales and I need to chart to reflect that. is there a way to make a date scale on the XAxis that will show these points this way? I have included a version of the chart we use on our web page.
The text was updated successfully, but these errors were encountered: