Hide Grid Lines in ColorGrid?
Posted: Fri Dec 18, 2015 1:44 pm
Hi.
How can I hide the grid in a TColorGridSeries at runtime? I can easily hide it using the designer, selecting the series and then "Format/Format/Grid/Visible". But I found no way to access the "Format" property for a series at runtime.
This is how I create the series:
--- snip ---
std::unique_ptr<TColorGridSeries> series(new TColorGridSeries(chart_));
series->Legend->Visible = false;
series->IrregularGrid = false;
series->Marks->Visible = false;
chart_->AddSeries(series.release());
-- snap ---
I tried to use the axes-property on the chart - but that had no effect:
chart_->Axes->Left->Visible = false;
chart_->Axes->Top->Visible = false;
chart_->Axes->Right->Visible = false;
chart_->Axes->Bottom->Visible = false;
What am I missing?
Thanks.
How can I hide the grid in a TColorGridSeries at runtime? I can easily hide it using the designer, selecting the series and then "Format/Format/Grid/Visible". But I found no way to access the "Format" property for a series at runtime.
This is how I create the series:
--- snip ---
std::unique_ptr<TColorGridSeries> series(new TColorGridSeries(chart_));
series->Legend->Visible = false;
series->IrregularGrid = false;
series->Marks->Visible = false;
chart_->AddSeries(series.release());
-- snap ---
I tried to use the axes-property on the chart - but that had no effect:
chart_->Axes->Left->Visible = false;
chart_->Axes->Top->Visible = false;
chart_->Axes->Right->Visible = false;
chart_->Axes->Bottom->Visible = false;
What am I missing?
Thanks.