Closed cujojp closed 1 year ago
@scmmishra or any maintainers want to give this a gloss over?
I feel it might be a huge step in the right direction for adding this feature. The want for this feature has been mentioned a couple times. 🎉
@scmmishra Hi Shivan, just wanted to flag this PR to your attn again. Would love to see this feature added as well.
This feature is super convenient, hope it will be land soon ðŸ˜
Any updates on that? It's been open for over a year now with no visible progress.
Any updates on that? It's been open for over a year now with no visible progress.
The project was stale and unattended for a while. Look forward to work on this PR over the next few days.
Explanation About What Code Achieves:
@frlinw mentioned in issue #160 the desire for multi axis support. However, it's been more than a year and we haven't seen that feature added. I decided to go ahead and work on that feature and this is it! 🎉 Also included is the ability to label the y-axis which was requested by @lasalesi in #219.
The configurations is pretty simple. Within the
axisOptions
configuration property you will need to include a newyAxis
array which contains your yAxis objects. Within each yAxis object you will include the following properties:left
orright
)span
ortick
(default isspan
)The
datasets
array need to include anaxisID
to match with the name of the coexisting y-axis id that was defined in the yAxis configuration object.Here is an example of how the configuration should look:
Note: If you only need one y-axis you can only include one object within the
yAxis
array in theaxisConfiguration
object.This should be a non-breaking change and is backwards compatible with existing configuration settings, users will not need to change any existing configurations.
Here is a JSFiddle with the working feature.
Screenshots/GIFs:
TODOs: