eshaul
02-29-2024Data Storage
Create vertical line in line chart with dates as x-axis
hello,
I am trying to add vertial lines (indicating event in time) to a simple line chart with dates as x-axis.
Unfurtunatly i succeeded only adding a single line according to index on x-axis and not value.
Questions:
1. How can i add the line for specific values (dates)?
2. How can i add more than one line?
3. The label i added is not shown. any idea why?
widget.on('beforeviewloaded', function(widget, ev){
	ev.options.xAxis.plotLines = [{
		color: 'red',
		dashStyle: 'ShortDash',
		width: 2,
		value: 9,
		label : {
			text : 'ver2'
		}
	}]
	
});