There is a line chart. The indicator line is written like this

series: [{ type: 'line', style: { stroke: '#30BDA7', lineWidth: 2 }, xField: 'name', yField: 'data1' }] 

Tell me, is there any possibility at all to draw not a solid line, but let's say the dotted line?

    1 answer 1

    The question is no longer relevant.

    The type of line is changed in the style: series: [{ type: 'line', style: { 'stroke-width': 3, //- ΡˆΠΈΡ€ΠΈΠ½Π° строки 'stroke-dasharray': '10' //- Π΄Π΅Π»Π°Π΅Ρ‚ ΠΏΡƒΠ½ΠΊΡ‚ΠΈΡ€Π½ΡƒΡŽ линию 'stroke-dasharray': '10 5 1 5' //- Π΄Π΅Π»Π°Π΅Ρ‚ ΡˆΡ‚Ρ€ΠΈΡ…ΠΏΡƒΠ½ΠΊΡ‚ΠΈΡ€Π½ΡƒΡŽ линию }, xField: 'name', yField: 'data1' }]

    • If you use Extjs graphics, then instead of 'stroke-dasharray' use lineDash: lineDash: [10], //-Π΄Π΅Π»Π°Π΅Ρ‚ ΠΏΡƒΠ½ΠΊΡ‚ΠΈΡ€Π½ΡƒΡŽ линию. lineDash: [10,5,2,5] //-Π΄Π΅Π»Π°Π΅Ρ‚ ΡˆΡ‚Ρ€ΠΈΡ…ΠΏΡƒΠ½ΠΊΡ‚ΠΈΡ€Π½ΡƒΡŽ линию lineDash: [10], //-Π΄Π΅Π»Π°Π΅Ρ‚ ΠΏΡƒΠ½ΠΊΡ‚ΠΈΡ€Π½ΡƒΡŽ линию. lineDash: [10,5,2,5] //-Π΄Π΅Π»Π°Π΅Ρ‚ ΡˆΡ‚Ρ€ΠΈΡ…ΠΏΡƒΠ½ΠΊΡ‚ΠΈΡ€Π½ΡƒΡŽ линию - Alexander