So this time, we are trying to change the chart in a dashboard panel. Basically, we are doing a drill-down but not in the normal sense. We have a circularGauge and when they click on it, we are expanding the panel and changing out the chart with a new chart and in the adjoining panel, completely changing the data in a line chart. Everything works as we want except for the line chart just shows blank with a grid visible with gridlines every .5.
var Drilldown200Data = [{x:'Oct',y: 111586,y1: 0,y2: 0},{x:'Nov',y: 433378,y1: 0,y2: 0},{x:'Dec',y: 389062,y1: 0,y2: 0},{x:'Jan',y: 379556,y1: 0,y2: 0},{x:'Feb',y: 168512,y1: 0,y2: 0},{x:'Mar',y: 14306,y1: 0,y2: 0},{x:'Apr',y: 0,y1: 0,y2: 0},{x:'May',y: 0,y1: 0,y2: 0},{x:'Jun',y: 0,y1: 0,y2: 0},{x:'Jul',y: 0,y1: 0,y2: 0},{x:'Aug',y: 0,y1: 0,y2: 0},{x:'Sep',y: 0,y1: 259718,y2: 0}];
var the200Chart = {
primaryXAxis: primaryXAxis,
primaryYAxis: primaryYAxis(533378,50000),
chartArea: chartArea,
tooltip: toolTip,
series: [
{
type: 'Line', dataSource: Drilldown200Data, marker: { visible: true },
dashArray: '5, 1', xName: 'x', width: 2, yName: 'y', name: '2020'
},
{
type: 'Line', dataSource: Drilldown200Data, marker: { visible: true },
dashArray: '5, 1', xName: 'x', width: 2, yName: 'y1', name: '2019'
},
{
type: 'Line', dataSource: Drilldown200Data, marker: { visible: true },
dashArray: '5, 1', xName: 'x', width: 2, yName: 'y2', name: '2018'
}
]
};