Hi
I am using spline chart, line chart(Composite chart - merged with bars). In this I am having issue of displaying datapoint. All other points except start point, end point are dotted circle in black color. This two points having value but it display differently. It should display as like others. I attached the screenshot. I need solution for spline chart as well as composite chart.
Thanks
Sridhar
Hi sandhyc,
Sorry, but it's not clear from your description what you're trying to accomplish. I think it's best if you could include a screenshot describing the desired behavior. I have a suspicion that what you're trying to do can only be achieved with a composite chart, because grouping that is similar to column charts is not possible for line charts.
Try the following code to get the text labels to appear along the line. You don't need to handle FillSceneGraph, but that could have been a good alternate approach.
DataTable dt = new DataTable();dt.Columns.Add("col1", typeof(string));dt.Columns.Add("col2", typeof(int));dt.Columns.Add("col3", typeof(int));dt.Rows.Add(new object[] { "point 1", 4, 10 });dt.Rows.Add(new object[] { "point 2", 5, 16 });dt.Rows.Add(new object[] { "point 3", 1, 17 });dt.Rows.Add(new object[] { "point 4", 3, 13 });dt.Rows.Add(new object[] { "point 5", 5, 17 });
ultraChart1.ChartType = ChartType.ColumnLineChart;ultraChart1.ColumnLineChart.ColumnData.DataSource = dt;ultraChart1.ColumnLineChart.ColumnData.IncludeColumn(2, false);ultraChart1.ColumnLineChart.ColumnData.RowLabelsColumn = 0;
ultraChart1.ColumnLineChart.LineData.DataSource = dt;ultraChart1.ColumnLineChart.LineData.SwapRowsAndColumns = true;ultraChart1.ColumnLineChart.LineData.IncludeColumn(1, false);
ultraChart1.Data.DataBind();
ChartTextAppearance chartText = new ChartTextAppearance();chartText.Row = chartText.Column = -2;chartText.Visible = true;chartText.ItemFormatString = "<DATA_VALUE>";ultraChart1.ColumnLineChart.Line.ChartText.Add(chartText);
Hi,
I want to create a line chart which has information for different categories for different agents. so i need to differentiate each agent info from oher and also different categories. please help me as I am new to the cahrts in infragistics.
thanks
Hello
I am facing this problem with a columnline chart.
I want the values that are ussed to make the line, to appear along the line.
For this, I have overrided FillSceneGraph and as I saw in older posts, i have tried to get the primitives that are polyline. But there are no polyline primitives, only line primitives on my stage.
The lines primitives have just the initial point and the final one, but in this case too, I wasn't able to get its exact location.
I did something like this:
ArrayList allBoxes = new ArrayList();
Line line; foreach (Primitive p in scene) { line = p as Line; if (line != null) { allBoxes.Add(p); } } line = (Line)allBoxes[1]; style.FontColor = line.drawColor; text = new Text( line.p1 , mData.Rows[0]["CONSO"].ToString(), style ); scene.Add( text);
but line.p1 dowsn't give me what I want. the x is correct, but the Y is allways the origin of the axes.
Could you please help me with this :((( thank you in advance
Looks like the clip bounds rectangle has been reset. Try adding this code before you add the point icons:
GraphicsContext gc = new GraphicsContext();gc.SetClipBounds(e.ChartCore.GridLayerBounds);e.SceneGraph.Add(gc);