Is it possible to switch chart type in EL script e.g for one value from optimizer to be OHLC and another RENKO? ChatGPT says its possible
saying I can use SetChartType or ChartType but they don't compile.
Yes, `ChartType` and `SetChartType` are common for both Easy Language and Power Language¹.
If you're using MultiCharts and `ChartType` and `SetChartType` are not recognized during compilation, it's possible that you are using an older version of MultiCharts that doesn't support these reserved words. You can try using the following code instead:
```
ChartType = 1;
```
I hope this helps! Let me know if you have any other questions.
Source: Conversation with Bing, 12/07/2023
(1) ui.Chart.setChartType | Google Earth Engine | Google for Developers. https://developers.google.com/earth-eng ... tcharttype.
(2) Chart.ChartType property (Excel) | Microsoft Learn. https://learn.microsoft.com/en-us/offic ... .ChartType.
(3) XlChartType enumeration (Excel) | Microsoft Learn. https://learn.microsoft.com/en-us/offic ... lcharttype.