mayur Report post Posted April 26, 2017 I am trying to use trendLines in msstackedcolumn2dlinedy. i wanted draw trendLines on secondary axis. but it seems it is bydefault drawing trendline on primary y axis. when i remove trendlines, max primary y axis value is 90. but when i add trendline, max primary y axis value shoots to 7k. That does mean in below case primary y axis trendLine is used even when i have mapped each trendLine to secondary axis. (parentYAxis: 'S'). Could you please help me in this scenario. Also can i draw area chart on secondary axis? Thanks in Advance... Code: FusionCharts.ready(function () { var revenueChart = new FusionCharts({ type: 'msstackedcolumn2dlinedy', renderAt: 'chart-container', width: '500', height: '300', dataFormat: 'json', dataSource: { "chart": { "divlinecolor": "CCCCCC", "alignLegendWithCanvas": "0", "showvalues": "0", "pYAxisName": "Bar Chart", "sYAxisName": "Line Chart" }, "categories": [ { "category": [ { "label": "Jan" }, { "label": "Feb" }, { "label": "Mar" }, { "label": "Apr" } ] } ], "dataset": [ { "dataset": [ { "seriesname": "Purchase1", "data": [ { "value": 21 }, { "value": 18 }, { "value": 27 }, { "value": 25 } ] }, { "seriesname": "Purchase2", "data": [ { "value": 63 }, { "value": 10 }, { "value": null }, { "value": null } ] } ] } ], "lineset": [ { "seriesname": "revenue", "data": [ { "value": 6173 }, { "value": 4153 }, { "value": 7109 }, { "value": 6142 } ] } ], "trendLines": [ { "line": [ { "startValue": 6104.8, "endValue": 6133.7, "displayValue": " ", "color": "6baa01", "alpha": "80", "dashed": "1", "parentYAxis": "S" } ] } ] } }); revenueChart.render(); }); Share this post Link to post Share on other sites
Akash Biswas Report post Posted April 28, 2017 Hi Mayur, Please check this fiddle : http://jsfiddle.net/Akash008/8z3om8e4/ The trend-line is plotted on the Secondary y-axis in the above sample. Use the below attribute entry in the "line" object : "parentYAxis": "s" Hope this helps. Share this post Link to post Share on other sites