I have a container with title and chart displayed. I want two dropdowns should be placed after the title and before the chart. But, that does not seem to work. If it does work, I need auto adjust on all title dropdowns and chart, like if the title grows large the other parts of the container should grow or shrink along.
I am facing problem now that does not seem to work. Can any one help me? You can find the fiddle here http://jsfiddle.net/BETBk/105/
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px">
<div id='some'>
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
<select>
<option value="more">More</option>
<option value="lidl">Lidl</option>
<option value="coop">COOP</option>
<option value="ICA">IKA</option>
</select>
</div>
</div>
Chart definition =======
$(function () {
$('#container').highcharts({
chart: {
plotBorderWidth: 1,
marginLeft: 80
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
title: {
useHTML:true,
text: '<div class="lhsTitle">My custom some sata do become dight title fdskfsdkjl fhdsfhdskf dsfhsdfsoinf lfsdlfadsofs dsfl skjldfjdsfjdsklfjdsklfjadskl ljklf dsklf dsklaf ddddd dd ddddd dd ddd ddddddd adsklfadsklfj</div>',
align: 'left',
x: 70
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
});
CSS============
.lhsTitle {
float:left;
}
.rhsTitle {
float:right
}
.highcharts-title {
overflow:hidden;
}
#some{
top : -360px;
margin-left: 40px;
position: relative;
height : auto;
overflow:auto;
display: inline-block;
}
#container{
overflow:hidden;
}
Thanks