Hi,
I am creating a chart of type "Column Line Chart".
For this type, the option "Show data values on chart" is disabled.
I would know how to show the data values on the line.
For the charts of types "Column Chart" and "Line Chart", this option is enabled.
Why is not possible select this property for the "Column Line Chart"?
Is there an alternative for this resource, to show the values in the chart?
Thanks
Hello Patricia,
Thank you for contacting Infragistics.
It is possible to show data values on a column line chart. You just have to set the properties in code. If you open the *.designer.vb or *.designer.cs file for your form with the regular column chart on it you'll see a line of code adding a ChartTextAppearance object to the UltraChart.ColumnChart.ChartText collection property. Since the column line chart has both a column chart and a line chart, you'll need to add a ChartTextAppearance object to the UltraChart.ColumnLineChart.Column.ChartText collection property and the UltraChart.ColumnLineChart.Line.ChartText collection property. I've provided a link below with more information.
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Chart_Column_Line_Chart_Specific_Properties.html
Please let me know if you have any other questions about this.
Hello Dave
Thanks for the help, it worked.
I have another question:
- My dataset has four columns: the item, the value for the year 2012, the value for the year 2013 and a percentage comparison.
Dim TesteColunaLinha As New DataTable TesteColunaLinha.Columns.Add("Texto", GetType(String)) TesteColunaLinha.Columns.Add("2012", GetType(Integer)) TesteColunaLinha.Columns.Add("2013", GetType(Integer)) TesteColunaLinha.Columns.Add("Crescimento", GetType(Integer))
TesteColunaLinha.Rows.Add("jan", 2409, 2644, 10) TesteColunaLinha.Rows.Add("fev", 2392, 2688, 12) TesteColunaLinha.Rows.Add("mar", 2449, 2655, 8) TesteColunaLinha.Rows.Add("abr", 2470, 2677, 8) TesteColunaLinha.Rows.Add("mai", 2518, 2834, 13) TesteColunaLinha.Rows.Add("jun", 2509, 2743, 9)
In the chart (see attachment), colors are defined by line, for example, the month of January is purple for 2012 and 2013.I would like the months of 2012 stay of one color and the months of 2013 of another color, is possible?
Thank you for your response.
The UltraChart gives each series its own color. The following page in our documentation describes how the UltraChart maps rows and columns in the data source to series and columns in the chart.
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Chart_Working_with_2D_Column_Chart_Data.html
According to that page, each row is drawn as its own series. In your case it looks like you have one column for each year and a row for each month. You might want to swap the rows and columns so a series is created for each year.
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Chart_Swap_Rows_and_Columns.html
I am following up to see if I may be of further assistance with this issue.
To change the color of the circle that appears around the data points, modify the UltraChart.Tooltips.HighlightOutlineColor property.
To get the functionality you described in your first question you will need to handle the FillSceneGraph event as I've done in the attached sample project.
I am currently researching your second question.
This configuration worked for me.
Another points:
- It is possible customize the appearance of the data labels to apply one background color (I already changed the font color and the font size)?- It is possible customize the appearance of the circle which is showed on MouseOver in the point (see attachment)?
To get the behavior you want, remove the SwapRowsAndColumns setting and add the following three lines of code in the Form.Load event handler.
this.ultraChart1.ColorModel.ModelStyle = ColorModels.CustomSkin; this.ultraChart1.ColorModel.Skin.ApplyRowWise = false; this.ultraChart1.ColorModel.Skin.PEs.AddRange(new PaintElement[] {new PaintElement(Color.Red), new PaintElement(Color.Green)});