2014年7月13日 星期日

[RESOLVED] I tried to create asp.net chart with chart type bubble, but I am getting square blocks instead.


Hi,


I tried to create asp.net chart with chart type bubble, but I am getting square blocks instead of bubbles. I am not getting what I am doing wrong. In the series I added charttype="Bubble". 


Thanks in Advance.,





Hi digish,


Hope the bellow link can help you. It is about changing charttype to bubble programmatically.


http://asp-net-example.blogspot.in/2010/09/how-to-set-change-chart-charttype_22.html



Hi, 


You can set the shape of data points in bubble chart as square, diamond or circle using Series.MarkerStyle property like this,


Chart1.Series("TestSeries").MarkerStyle = MarkerStyle.Circle;
Chart1.Series("TestSeries").ChartType = SeriesChartType.Bubble ;

Hope this helps!





The default Marker style for the Bubble Chart is Square.  Here are your MarkerStyle options:


chrtDemo.Series("Default").ChartType = SeriesChartType.Bubble
chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Circle
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Cross
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Diamond
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Triangle
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Star4
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Star5
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Star6
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Star10
'chrtDemo.Series("Default").MarkerStyle = MarkerStyle.Square


 


沒有留言:

張貼留言