【问题标题】:Set Tickpositions设置刻度位置
【发布时间】:2013-08-09 11:34:44
【问题描述】:

我是第一次在 Visual Basic 中使用 Dotnet.Highcharts 框架,我需要您的帮助。 我想设置刻度位置,但不知道如何设置。

code snippet:
.SetYAxis(New YAxis With {.GridLineWidth = 0, _
         .Title = New YAxisTitle With {.Text = "test text"}, _
         .Min = 1, _
         .Max = 3, _
         .TickPositions = ??? })

感谢您的帮助

【问题讨论】:

    标签: asp.net dotnethighcharts


    【解决方案1】:

    YAxis 类的 TickPositions 属性是 Number?() 类型,它是一个特定 Highcharts 类型的数组,用于表示数字

    Numberintdouble 和可空的ints 和doubles 的代码中存在隐式转换运算符,以及构造函数,因此定义它们的数组可以为很简单:

    Dim tickPositions as Number?() = New Number?() {1, 2.5, new Number(123)}
    

    或在您的内联代码中:

    .TickPositions = New Number?() {1, 2.5, new Number(123)} })
    

    【讨论】:

    • 就是这样。我想知道“数字?”并且只写了“数字”,而不是数字?
    猜你喜欢
    • 2013-01-09
    • 2020-10-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多