Unproportional Bubble Chart with the size paramater

烈酒焚心 提交于 2019-12-02 01:31:59

This looks really weird.

The best explanation I have is that the sizes always start with the smallest one set and scale them going from 1 to the largest one set in proprtional steps.

Sounds awfully strange? Yup.

Here are the notes on MSDN on BubbleScaleMax and BubbleScaleMin

If set to Auto, the smallest plotted bubble is displayed using the minimum size.

If set to Auto, the largest plotted bubble will be displayed using the maximum size.

Setting these properties to anything else but Auto is tricky; you could use this:

 chart1.Series[0]["BubbleScaleMin"] = "0";

Or any number smaller than your smallest size.

Or, if you prefer, here is a workaround: Add a transparent dummy point with size = 0 and suitable x- and y-values:

int i = this.chart1.Series[0].Points.AddXY(1, 1, 0);
this.chart1.Series[0].Points[i].Color = Color.Transparent;

Before and after:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!