d3.js - How to scale 2 axes on a certain date with dimple/d3? -


I have a chart that receives 2 sets of data and draws a chart of 2 axes; The scene has provided a simple example.

The relevant piece of code:

var x = myChart.addTimeAxis ('x', 'date', '% d -% m-% Y', '% D-% m-% Y '); X.showGridlines = true; X.addOrderRule ('Date');

  var y1 = myChart.addMeasureAxis ('Y', 'total cost'); Y1.showGridlines = true; Var y2 = myChart.addMeasureAxis ('Y', 'total value'); Y2.tickFormat = '1f'; Y2.showGridlines = true; Var s1 = myChart.addSeries ('figure type', dimple.plot.line, [x, y1]); S1.data = first_series; Var s2 = myChart.addSeries ('statistical type', dimple.plot.line, [x, y2]); S2.data = second_series;  

What I want to do is scale the two axes on a definite scale (such as 01-10-2014), the point is at the same level at the height of the chart.

Thank you, Alexandra

I have given an example on how it should look (the date drawn by me is approximate: D )

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -