Closed nicko170 closed 2 years ago
Adds a ->setType() method to Pie Chart, which allows for donut charts and defaults to pie charts!
$accountTermChart = LivewireCharts::pieChartModel() ->setAnimated($this->firstRun) ->withoutDataLabels() ->withoutGrid() ->addSlice('Term Elapsed', Auth::user()->currentAccount->currentAccountTerm->termAsPercentageFromToday(), '#006eb6', ['opacity' => 0.7]) ->addSlice('Term Remaining', 100 - Auth::user()->currentAccount->currentAccountTerm->termAsPercentageFromToday(), '#66a8d3') ->setOpacity(1) ->setType('donut') ->withoutLegend() ->setSparklineEnabled(true);
[If exists, provide a link to the corresponding issue(s).]
Great addition @nicko170 ! Thanks!
Summary
Adds a ->setType() method to Pie Chart, which allows for donut charts and defaults to pie charts!
Issue
[If exists, provide a link to the corresponding issue(s).]
Type of Change
Screenshot/Video