d3.js - Dual Y axis line chart in dc.js -


I have an overall chart of the three line chart, in a chart a "fake" group has been used as suggested. As you can see in the snapshot below, though the scale of the third chart is very different from the other two. I want the solution is shown as a double axis chart as I think it can be done using the .renderlet () on the main composite chart, but I was wondering if a "sexual" with pure DCGS "Is the solution?

Here's a snapshot:

Enter image description here

And here is my code I (in coffeescript) I tried to use .y and .yx on the internal chart, but it has no effect.

  actualValuesChart = dc.lineChart (main chart) .group (metric, "real" + @ displayName) .valueAccessor (d) - & gt; D.value.avg .colors (['green']). Interopalate ('base-open') ideal value chase = dcline chart (main chart) .group (metric, "normal" + @ display name) .valueAccessor (d) - & gt; D.value.avg_avg .colors (['RGBA (0,0,255,1)'] Interoplate ('base-open') clipsart = dclinechart (main chart) .group (buildfax group (default clip array)) color ( ['Red']). Interoplete ('basis-open') # .y (d3.scale.linear () range ([100, 0]) #. Yaxis (d3.svg.axis () scale 3 .scale.linear () range ([100, 0])))) main chart. Dimension (@ dimension .mmststamp). Wide (this chart. Fourthth +30) .ight (this chart .width .333). YAxisLabel (@displayName). Elastic (true) x (de 3.time scale). Domains ([minutes, more Tame Day]). XiNet (de 3.time.MM) .brushon (true). Legend (D.CZend) x (60) .y (10) .itemHeight (13) .gap (5)). RenderHorizontalGridLines (true) .compose ([actualValuesChart, normvalalsChart, clipcart])    

yes! This is a very new feature and I have not tried it myself, but if you make some of your additions, then set the overall chart on another chart, then you should get the thing you find Are you

But this is completely bleeding and I think the example is currently broken (web / example / right-axis html). So please if you are having problems with the discussion or start a discussion, please follow.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -