Dual Bar Chart Example. Sep 04 2019 In this example we show the monthly sales trend by using lines and a dual axis with bars to compare promotions and non-promotions in details. Right click on one of the variance series on the chart.
Be aware that I use scaleBand for the x-axis which helps to split the range into bands and compute the coordinates and widths of the bars with additional padding. Var xScale d3scaleBand range 0 widthpadding 04 The above code snippet defines scales for x axis. Powerpoints used to deliver the topic.
Select Format Data Series then select Secondary Axis.
Determines whether value scales in dual-scale charts are synced. If you use similar units of measurement for example monetary values make sure both Y-axes are scaled differently. For example you can use a dual axis chart to compare revenue and units sold price and volume or rainfall and temperature. Sep 04 2019 In this example we show the monthly sales trend by using lines and a dual axis with bars to compare promotions and non-promotions in details.
