Is there a way to give the tooltip of the crosshair/trackball a fixed position, like it is by default in the stock chart?
I have this:
But I'd like to have this (aligned on the top-left of the chart area):
Here is how I've set the crosshair in my chart:
chart = new ej.charts.Chart({
rows: [{ height: '30%' }, { height: '70%' }],
chartArea: { border: { width: 0 } },
//Initializing Primary X Axis
primaryXAxis: {
valueType: 'DateTime',
labelFormat: 'yyyy-MM-dd',
edgeLabelPlacement: 'Shift',
majorGridLines: { width: 0 },
crosshairTooltip: { enable: true },
},
.......
//Initializing Tooltip and Crosshair
tooltip: { enable: true, shared: true },
crosshair: { enable: true, lineType: 'Both', line: { width: 1, color: '#cccccc' }, dashArray: '5, 5' }