Forum Discussion
d3 Line graph dual y-axis
jppp Can you help with this issue? It seems devs use D3.JS visual.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
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
- aar0n8 years agoAdvocate II
i would really appreciate if you could share the file!
Thanks for the help!!
- sriksrin8 years agoFrequent Visitor
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
- sriksrin8 years agoFrequent Visitor
Thanks jppp for sharing the pbix file. I am still puzzled as the new duplicate column didnot change any data after been applied to sort. Can u share some more details on the fix.
- Anonymous6 years agoNot applicable
Can you reshare PBIX file ? cause the link you posted is no longer available.