I´m trying to create customs tooltips with google charts and Laravel.
var rdb = new google.visualization.arrayToDataTable([
['', 'Contract Cost', 'Deployment Cost', {label: 'T2', role: 'tooltip'}],
@foreach($rdbs as $rdb)
@foreach ($rdb as $result)
['{{mb_strimwidth($result->product, 0,50,"...")}}', {{$result->contract_costs}},{{$result->deployment_costs}},'{{$result->product}}'],
@endforeach
@endforeach
The '' has a product name limit to 50, the tooltips that I need to show have full product name. ¿Any idea why this code doesn't work? The tooltips show name with limit to 50, not with the full name.
Update:
var full= $( "panel-body" ).width();
var options = {
width: full,
height: rdb.getNumberOfRows()*20,
bars: 'horizontal',
}