C1BarChart display currency, space and hide values

Originally Posted 25 May 2016, 3:04 pm EST

  • Originally Posted 25 May 2016, 3:04 pm EST

    Hello, I need a few tweaks on my C1BarChart.

    My chart is composed by money received and money to be receive in a given year.
    X axis is composed by year months (jan, feb,...dezember)
    Y has two axis: money received, money to be received.

    I've attached a printscreen demonstrating my barchart and the "issues" I'm facing:

    1) My Y axis value label isn't being displayed correctly... for instance: the value being displayed is "12512.19" which is the double value, but it should be displaying "12.512,19" or even "R$ 12.512,19".
    2) I'd like to hide these values on top of the bar, is there any way to do it?
    3) Values get overlayed when the two bars are close to each other, any way to put some space in between them, or hide one of the bar's label?

    Thanks in advance,
    Luís Henrique.


  • Marked as Answer

    Reply

    Hello,

    Sorry for the delayed response.

    1. In order to display the decimal values in chart labels, I suggest you to set the ChartLabelFormatString property of C1BarChart.
    Here is the suggested markup:

    wijmo:C1BarChart runat = "server" ID="C1BarChart1" Horizontal="false" ChartLabelFormatString="n2" Height="475" Width = "756"/>


    2. In order to hide the values on the top of the chart, you are suggested to set the TextStyle of DataSeries. Here is the suggested markup:

    <wijmo:BarChartSeries Label="Recieved" LegendEntry="true">
    <TextStyle>
    <Fill Color="Transparent" />
    </TextStyle>
    <wijmo:BarChartSeries/>


    3. In order to provide the spacing in between the bars of the chart, we suggest you to set the ClusterSpacing property of C1BarChart. Here is the suggested markup:

    wijmo:C1BarChart runat = "server" ID="C1BarChart1" Horizontal="false" ChartLabelFormatString="n2" Height="475" Width = "756" ClusterSpacing="30"/>


    Please find the attached sample implementing your requirements and let me know in case of any doubts or queries.

    Regards,
    Prashant
    2016/06/WebForms_C1BarChart.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels