Forum Discussion
d3 Line graph dual y-axis
I managed to get the code working and basically the trick is in how the data is presented to and used by D3js.
In this case the date column: I have kept it as a string, e.g. '26-Mar-18' and add a derived column, convert as a date type and use that for the 'sort-by' column.
After that the line d3.time.format("%d-%b-%y").parse; will correctly parse the column to dates that can be used by the d3js axis.
If you need some more explanation; I got a PBIX file that I can share if needed.
-JP
Hi JP,
While i am trying what you have said, it would really be very helpful to share the pbix file.
Thanks
Srikanth
- v-viig8 years agoCommunity Champion
PBIX has been attached by Jan Pieter. See link above.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- tcd1nc8 years agoFrequent Visitor
https://github.com/tcd1nc/DualYAxesChart for alternative