ASP Chart. Multiple X axis values

筅森魡賤 提交于 2019-12-11 13:44:29

问题


I have been trying to have a chart with horizontal bars, with 2 series, one of them has huge values (1000,5000) and the other one tends to have smaller ones (10,100).

Something like this but on horizontal: ASP Chart with multiple X axis columns

The problem is that I'm unable to have some kind of different range/legend for each one. The small one stays small, but I would like to have some kind of proportional, having 2 legends on bottom.

How could I do that?

I have tried different things like using this statement:

    seriesSmall.XAxisType = AxisType.Secondary;
    chart.ChartAreas[0].AxisX2.Maximum = 200

But it did not work out...


回答1:


seriesSmall.YAxisType = AxisType.Secondary;


来源:https://stackoverflow.com/questions/18724464/asp-chart-multiple-x-axis-values

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