Skip to content

Stop Negative Chart Values #1198

Closed Answered by xuri
MarkWildey asked this question in Q&A
Discussion options

You must be logged in to vote

Please upgrade to the new version 2.6.0, and specify the minimum as 0 for the Y-axis in the chart parameter like this:

if err := f.AddChart("ActLog_IOSTAT_IOPS_Interval", "C35", `{
    "type": "line",
    "series": [
    {
        "name": "ActLog_IOSTAT_IOPS_Interval!$A$33",
        "categories": "ActLog_IOSTAT_IOPS_Interval!$B$32$CNL$32",
        "values": "ActLog_IOSTAT_IOPS_Interval!$B$33:$CNL$33",
        "marker":
        {
            "symbol": "none"
        }
    }],
    "title":
    {
        "name": "Disk Activity by Interval"
    },
    "format":
    {
        "x_scale": 2,
        "y_scale": 2
    },
    "y_axis":
    {
        "minimum": 0
    }
}`); err != nil {
    fmt.Println

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MarkWildey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants