How to wrap the text in dountchart datafield create dynamically

0 Answers 30 Views
Chart (HTML5) Chart (Obsolete)
M Kumar
Top achievements
Rank 1
Iron
Veteran
M Kumar asked on 07 Feb 2022, 08:19 AM

hi sir,

 

           i have dynamically creted a dountchart  radhtmlchart in code behind , now i want to wrap the text. I the data length is too large then the chart go smaller example is show below, otherwise is normal.

          I need solution ASAP

         the sample code:

Dim chart As New RadHtmlChart
        chart.ID = "chart"
             chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 75

        chart.PlotArea.XAxis.DataLabelsField = _ChartSeriesFieldTitlexaxis

        chart.PlotArea.Series.Clear()
        Dim series As New DonutSeries
        series.NameField = _ChartSeriesFieldTitlexaxis
        series.DataFieldY = _ChartDataFieldTitle
        chart.PlotArea.Series.Add(series)
        chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "d"
        chart.PlotArea.XAxis.BaseUnit = DateTimeBaseUnit.Days
        chart.PlotArea.XAxis.TitleAppearance.Text = _ChartSeriesFieldTitlexaxis
        chart.PlotArea.YAxis.TitleAppearance.Text = _ChartDataFieldTitle

        chart.DataSource = firstTable
        chart.DataBind()

 

 

        

No answers yet. Maybe you can help?

Tags
Chart (HTML5) Chart (Obsolete)
Asked by
M Kumar
Top achievements
Rank 1
Iron
Veteran
Share this question
or