So i have points Data that have two members YValue and Axis Label.
i have multiple series. for each series i set the mapping as such
seriesmapping.SeriesDefinition = GetSeriesType(series.SeriesType);// right now all are line charts
seriesmapping.CollectionIndex =index;
ItemMapping itemMapping = new ItemMapping();
itemMapping.DataPointMember = DataPointMember.YValue;
itemMapping.FieldName = "YValue";
return itemMapping;
seriesmapping.ItemMappings.Add(ItemMapping);
Now for the labels i am taking the following approach. i tried keeping this binding for only the first series. then bind to every series
//ItemMapping itemMapping = new ItemMapping();
//itemMapping.DataPointMember = DataPointMember.Label;// i tried both this and X category
//itemMapping.FieldName = "AxisLabel";
//seriesmapping.ItemMappings.Add(itemMapping);
with one series the labels work (i have other issues but they are mentioned in my last question). but adding multiple series and trying to bind the labels it does not work . what am i doing wrong.
Also. i dont want display certain points. these points i have as NAN. but you guys graph that and makes my graph look awful. is there anyway i can not display NAN.
i have multiple series. for each series i set the mapping as such
seriesmapping.SeriesDefinition = GetSeriesType(series.SeriesType);// right now all are line charts
seriesmapping.CollectionIndex =index;
ItemMapping itemMapping = new ItemMapping();
itemMapping.DataPointMember = DataPointMember.YValue;
itemMapping.FieldName = "YValue";
return itemMapping;
seriesmapping.ItemMappings.Add(ItemMapping);
Now for the labels i am taking the following approach. i tried keeping this binding for only the first series. then bind to every series
//ItemMapping itemMapping = new ItemMapping();
//itemMapping.DataPointMember = DataPointMember.Label;// i tried both this and X category
//itemMapping.FieldName = "AxisLabel";
//seriesmapping.ItemMappings.Add(itemMapping);
with one series the labels work (i have other issues but they are mentioned in my last question). but adding multiple series and trying to bind the labels it does not work . what am i doing wrong.
Also. i dont want display certain points. these points i have as NAN. but you guys graph that and makes my graph look awful. is there anyway i can not display NAN.