livewire-charts
livewire-charts copied to clipboard
Is there a way to change the hover title?
Hello,
Right now on hover, the title says series-1
for a ColumnChartModel
.
$usersChart = $users->reduce(function (ColumnChartModel $usersChart, $data) use ( $dashboard ) {
$month = $data->first()->created_at->format('n');
$value = $data->count();
return $usersChart->addColumn($dashboard->months[$month], $value, $dashboard->colors[$month] );
}, (new ColumnChartModel())
->setTitle('Users Created')
->setAnimated($this->firstRun)
->withoutLegend()
);
I was wondering how to change that title?
Thanks.
any updates here?
has anyone been able to remove the series-1 hover from the ColumnChartModel? i need to remove it!
has anyone been able to remove the series-1 hover from the ColumnChartModel? i need to remove it!
I want to do this too
@asantibanez can you help us with this? how to change the title "series-1" ?
Hello, I have the same problem.
For anyone looking to remove the "series-1" text from the tooltip, adding the following CSS to my project's stylesheet worked:
.apexcharts-tooltip-text-label {
display: none !important;
}
Hope this helps someone!
Same here. Please add function to adjust series name and tooltip content in a single column chart
I think the library changed because jimhlad's solution didn't work for me.
But this did the trick in a ColumnChartModel:
<style type="text/css"> .apexcharts-tooltip-text-y-label { display: none !important; } </style>
Any update on this?
@Slund @linusx @SDJeff @jimhlad I fix this problem with a new PR #80
You can use (new ColumnChartModel())->setTitle('Title')
and the hover title use that title