-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
New chart type - LineXY & DateAxis #185
Conversation
Hey there! I didn't forgot about this. It will just take me some time to review and test. Please bear with me. |
@baks This is perfect ~ just what we needed. However, I was wondering if there was a way to specify the x-values using the Year Ticks Provider, and then specify the y-values using the Logarthimic Scale. Currently, there are no x values being shown at all (we would like to show every 5-10 years), and the y-values range from 4.25 - 10.25, where we would like to show incrementation in 10's: 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, etc. etc. Is this possible? |
I hope that this example is what you need :) |
@baks Still doesn't show anything for me. :( |
@baks Update: So I just tested this in Firefox, and it seems to be working. I'm using Google Chrome. Is this a known issue? Is there a fix for it? |
@LRRoberts0122 You're right it doesn't work in Chrome. I try to investigate this on the weekend. |
Thank you. |
Hey @baks great work. Did you find a solution for the Chrome problem or is this request lost for now? |
In date-axis width length for axis label was incorectly evaluated. Now length for one range axis label is calculated by dividing all range by length of ticks
@LRRoberts0122 @baba43 I fixed problem in Chrome. Sorry for that it takes so long 😢 |
Hi Guys, can you build the latest develop branch and help me to do some testing? be9e6b6 is now containing configurable axes and XY charts are possible. You get more info in be9e6b6 while I'm working on some further testing and documentation. @baks if you got time, your help would be much appreciated. |
@baks I'll close this PR for now and then we could do some more efforts for the date axis. |
New chart type proposition - LineXY and also DateAxis.
I tried to refactor code a little bit. Also created one ticks provider :)
Line XY
Example to use logarithmic scale:
Date Axis
It allows to specify that on axis we have date values.
We could specify resolution in DateTicksProvider constructor :
If no resolution specified in DateTicksProvider constructor, ticks are created based on duration between start and end date.
example:
Examples
Simple LineXY
Logarithmic Scale
Resolution Based Ticks Provider
Year Ticks Provider
Month Ticks Provider
Day Ticks Provider
Hour Ticks Provider
Minute Ticks Provider
Seconds Ticks Provider
Milliseconds Ticks Provider