public void test(index)
{
Print(chartControl.GetXByBarIndex(ChartBars, index));
}
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
base.OnRender(chartControl, chartScale);
for (int idx = ChartBars.FromIndex; idx <= ChartBars.ToIndex; idx++)
{
test(idx);
}
}
The name 'chartScale' does not exist in the current context. How do I pass chartControl and chartScale into my function when the function is written above the OnRender block like this?

Comment