Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
Data point labels in CompositeChart
posted

Hi guys! 

Is there any way to make data point labels visible by default in CompositeChart for WinForms UltraChart?

Seems that CompositeChart doesn't have ChartTextAppearance property as opposed to LineChart and other types.

Thanks in advance.

  • 26458
    Verified Answer
    Offline posted

    ChartText collection is located in a slightly different place for composite charts. It's part of the layer's appearance object.

    ChartLayerAppearance compositeLayer = new ChartLayerAppearance();
    layer.ChartType = ChartType.LineChart;

    LineChartAppearance appearance = new LineChartAppearance();
    compositeLayer.ChartTypeAppearance = appearance;
    appearance.ChartText.Add(myChartTextItem);