I generate a tooltip with a chart on it.
tooltip: {
borderRadius: 15,
borderWidth: 0,
shadow: false,
enabled: true,
backgroundColor: 'none',
useHTML: true,
shared: true,
formatter: function() {
var div = document.createElement('div');
Highcharts.chart(div, {
chart: {
height: 300,
width: 300
},
title: {
text: 'Title'
},
series: [
{
data: [10, 20],
color: 'red'
},
{
data: [20, 10],
color: 'green'
}
],
yAxis: {
title: {
text: 'Quantity'
}
}
});
return div.innerHTML;
}
}
Real data example
The main chart is of the line
type. The tooltip chart is of the column
type.
Dummy data example
The main chart is of the line
type. The tooltip chart is of the line
type as well. You may see half-visible red and green symbols. They are either hidden by something (I am trying to figure out what it is) or were suddenly stopped being rendered (I highly doubt it).
Do you have any ideas what it could be?
Update 1
I was able to identify the element the series are rendered into. It's there, the size seems correct, it has points rendered.
<g class="highcharts-series-group" data-z-index="3">...</g>
Though, I couldn't bring it to the front, or make it visible by any CSS means.
That's basically the question. How to bring it to the forward or unhide?
Update 2
I was experimenting with setting the dimensions by both
div.style.width = "500px";
and
chart: {
height: 300,
width: 300
}
to no avail.
Update 3
I created a jsfiddle. Please, have a look.
Do you have any ideas? Any thought would be invaluable.