Home > Net >  Value in the chart labe display problems for help
Value in the chart labe display problems for help

Time:09-17

Chart for boxplot (box must figure), the code has to normal display chart,
At present three problems consult a great god:
1, chart how to display the value labe, require show: the maximum, minimum, average, the value of outliers labe, at present the situation of the display as shown in figure 1
2, series1, series2 series3, set AxisLabel unable to show to the chart in


Below is part of the code
 
Chart1. ChartAreas. The Clear ()
Dim ChartAreas1 As New ChartArea (SeriesName) 'to define New ChartArea
Chart1. ChartAreas. Add (ChartAreas1) 'to Add a new definition of the ChartArea Chart1
Chart1. ChartAreas (0). AxisX. Title=ExcelDataSet0. Tables (0). The TableName 'set in the ChartArea axes Title
Chart1. ChartAreas (0). AxisY. Title=SeriesName
Chart1. ChartAreas (0). AxisY. Minimum=y_Min
Chart1. ChartAreas (0). AxisY. Maximum=y_Max
Chart1. ChartAreas (0). AxisY. Interval=FormatNumber ((y_Max - y_Min)/6, 4) 'axes numerical Interval adjacent size

Chart1. Series. The Clear ()
BoxPlotSeries=New Series () With {
.name=LimiteValue,
. ChartType=SeriesChartType. BoxPlot
. AxisLabel="PN1W7910_Rm", 'problem: here set AxisLabel can response to the chart of the x axis, but three groups data naming will be modified,
. IsValueShownAsLabel=True} 'problem: set IsValueShownAsLabel here, can't get the chart shows all the labe numerical

BoxPlotSeries boxPlotSeries (" ")="1; 2; 3 "
BoxPlotShowAverage boxPlotSeries (" ")="True"
BoxPlotShowMedian boxPlotSeries (" ")="True"
BoxPlotShowUnusualValues boxPlotSeries (" ")="True"

Series1=New Series () With {
.name="1",
The Enabled=False,
. AxisLabel="PN1W7910_Rm"} 'problems: series1, series2 series3, set AxisLabel unable to show to the chart in
Series1. Points. DataBindY (yy1)

Series2=New Series () With {
.name="2",
The Enabled=False,
. AxisLabel="PN1W7911_Rm"}
Series2. Points. DataBindY (yy2)

Series3=New Series () With {
.name="3",
The Enabled=False,
. AxisLabel="PN1W7912_Rm"}
Series3. Points. DataBindY (yy3)

Chart1. Series. The Add (boxPlotSeries)
Chart1. Series. The Add (series1)
Chart1. Series. The Add (series2)
Chart1. Series. The Add (series3)


In addition I find information on the Internet, I found a "y value index", I don't know what's the how to call?
  • Related