javascript - Multiple linecharts with different Y scales with shareable X Axis using d3js -


im working on project have big amount of data. it's segmented categories soybean, ma20, ma50, ma100, bbw_2 , date. i've done far use code can filter , zoom in data. result

  • selecting soybean:enter image description here

  • selecting ma50: enter image description here

  • selecting bbw_2 !here problem! :enter image description here problem when bbw_2 selected. can see orange line touching x axis. bbw_2. has it's y' axis max value of 2, infinitely smaller 1200, scale doesn't work expected. doesn't occur other categories because have similar y' axis values.

what want achieve?

i want plot categories user selects appending selected categories`generated linechart same x axis different y scales. 1 example of one: enter image description here.

what i've tried:

  • change y scale changing when user selects bbw_2.

  • plot in different svg`s. doesnt work great because loses zooming effect.

the code: https://jsfiddle.net/ldepaula/3q1k9hyj/1/


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -