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
250
Composite Chart (Column chart and Line Chart)
posted
Hi, How can i put labels for each column in column chart "Composite"? Thanks.
Parents
No Data
Reply
  • 26458
    Offline posted

    If you're doing this through the designer:
    Select your column layer
    Go to the ChartTypeAppearance property
    Find ChartText collection
    Edit the collection and add a new item to it
    Set Column and Row properties to -2
    Set Visible property to true

    or in code:
    ColumnChartAppearance appearance = new ColumnChartAppearance();
    ChartTextAppearance chartText = new ChartTextAppearance();
    chartText.Column = chartText.Row = -2;
    chartText.ItemFormatString =
    "<DATA_VALUE:0.##>";
    chartText.Visible =
    true;
    appearance.ChartText.Add(chartText);
    myLayer.ChartTypeAppearance = appearance;

Children