• Resolved ptrkx

    (@ptrkx)


    Hello, unfortunately I have another question.

    I use dual y-axis charts, where I would like to have 2 lines dashed. According to Google documentation this is possible. Unfortunately the implementation does not work for me in my manual configuration.

    {
    “vAxes”: {
    “0”: {“title”: “Performance / Power [W]”, “ticks”: [0,100,200,300,400,500,600]},
    “1”: {“title”: “Torque / Torque [Ncm]”, “ticks”: [0,2,4,6,8,10,12]}
    },
    “series”: {
    “0”: {“targetAxisIndex”: “0”},
    “1”: {“targetAxisIndex”: “0”},
    “2”: {“targetAxisIndex”: “1”},
    “3”: {“targetAxisIndex”: “1”}
    }
    }

    According to Google:
    { “https://developers.google.com/chart/interactive/docs/lines#jsonly”.

    1: { lineDashStyle: [2, 2] },

    Do you know how I can add this styling to a line?

    Thanks a lot already
    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mat

    (@mateithemeisle)

    Hello @ptrkx,

    Thank you for using Visualizer and for reaching out!

    Can you please try and add the below code in the manual configuration?
    { "series": { "0": {"lineDashStyle":[10,10]}, "1": {"lineDashStyle":[10,10]} } }

    Thank you and please let us know if this worked for you!

    Thread Starter ptrkx

    (@ptrkx)

    Thank You. I got it running with this Code:

    {
    	"vAxes": {
    	"0": {"title": "Leistung / Power [W]", "ticks": [0,100,200,300,400,500,600,700]},
    	"1": {"title": "Drehmoment / Torque [Ncm]","ticks": [0,2,4,6,8,10,12,14]}
    	},
    	"series": {
    		"0": {"targetAxisIndex": "0"},
    		"1": {"targetAxisIndex": "0"},
    		"2": {"targetAxisIndex": "1", "lineDashStyle":[10,10]},
    		"3": {"targetAxisIndex": "1", "lineDashStyle":[10,10]}
    	}
    }

    Awesome 🙂

    Great, we are glad to hear the issue is solved!

    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dashed Lines in manual configuration’ is closed to new replies.