I'm trying to embed an igDataChart in a page with dark background and I want the chart background to have the same background.
I found the property plotAreaBackground that colors the chart's background but the chart labels' background remains white.
Is there a way to color it?
Hi,
Iam using pie chart with MVC in my application. Can you please tell me how to display labels with percentage in Pie Chart like we do with XamPieChart. Here is my code
@(Html
.Infragistics()
.PieChart(Model)
.ID("chart")
.Width("200px")
.Height("300px")
.ValueMemberPath(label => label.NetSales)
.LabelMemberPath(label => label.Year)
.LabelsPosition(LabelsPosition.BestFit)
.Brushes(new List<string> { "#ffd320", "#ff420e", "#004586", "#579c1b" })
.Legend(legend => legend.ID("legend").LegendType(LegendType.Item))
.DataBind()
.Render()
)
Here I want to display NetSales in percentage in Pie Chart slices.Thanks in advance
After a long search in the online documents, I was able to find the property of the axis that controls the title's angle.
It is called titleAngle.
Now that the background is colored, I have additional problem.
The title of the vertical axis color has to be changed.
It is displayed vertical by default as can be seen on the picture above. If I change its color, it turned to be horizontal.
How can I control its angle to remain 90 degrees?
Thank you.
It works now.
Hello Sephi,
Thank you for contacting Infragistics with your query. You may be able to achieve what you are looking for by modifying the css for class 'ui-chart-container'. For reference, the css for this class is already defined in css/structure/Infragistics.css. You can modify the css and add a desired background color to it.
Please let me know if this answers your question.
Sincerely,
Malav Patel