设置两个轴的值 [英] Set Values for Both Axes

查看:61
本文介绍了设置两个轴的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用条形图来显示RAAM自行车赛车手的进度。有24名赛车手通过54个时间站,我想向车手展示车手,时间表作为距离,以便车手通过时间表相关的BAR
将延长到那个时间                     ;站。但是,我无法看到如何添加自定义距离而不是自动生成的值?

解决方案

如果我理解正确,请使用  CustomLabels 可在轴上的任何位置添加标签。


例如,

 
Dim 时间站 As Double ()= {10,35,80 ,100}

对于 每个 stationPosition 时间站中
Dim fromPosition As Double = stationPosition - 10
Dim toPosition 正如 Double = stationPosition + 10
Dim lbl 正如 CustomLabel(fromPosition,toPosition,stationPosition.ToString,0,LabelMarkStyle.None,GridTickTypes。全部
Chart1.ChartAreas(0).AxisY.CustomLabels.Add(lbl)
下一步


I want to use a bar graph to show progress of RAAM bike racers. There are 24 racers that pass 54 timestation, I would like to show the riders in the horizonal, and the timesttations as distances so as the riders pass the timesations the associated BAR would extend to that time    station. However, I cant see how to add custom distances instead of the automatically generated values?

解决方案

If I understood correctly, use CustomLabels to add labels anywhere on the axis.

For example,

Dim timestations As Double() = {10, 35, 80, 100}

For Each stationPosition In timestations
	Dim fromPosition As Double = stationPosition - 10
	Dim toPosition As Double = stationPosition + 10
	Dim lbl As New CustomLabel(fromPosition, toPosition, stationPosition.ToString, 0, LabelMarkStyle.None, GridTickTypes.All)
	Chart1.ChartAreas(0).AxisY.CustomLabels.Add(lbl)
Next


这篇关于设置两个轴的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆