Sencha chart series 초기화
series를 동적 처리할때, chart.setSeries([]); 처럼 초기화를 해줘야 함// Assume you have a chart component with an ID of 'myChart'let chart = Ext.getCmp('myChart');// Function to update series dynamicallyfunction updateSeries(data, xField, yField) { if (!chart) { console.error('Chart not found!'); return; } // Remove existing series chart.setSeries([]); // Add a new series dynamically..
2024.11.24