Comments (4)
@lordz123 we randomize all the colors for the chart.
But we support colors if you have conditions.
From Readme file:
Option: conditions
(optional, only for line
chart type) - array of conditions (name + raw condition + color) for multiple datasets;
Example:
$chart_options = [
'chart_title' => 'Transactions by dates',
'chart_type' => 'line',
'report_type' => 'group_by_date',
'model' => 'App\Models\Transaction',
'conditions' => [
['name' => 'Food', 'condition' => 'category_id = 1', 'color' => 'black', 'fill' => true],
['name' => 'Transport', 'condition' => 'category_id = 2', 'color' => 'blue', 'fill' => true],
],
from laravel-charts.
I really like this package especially with Quick Admin Panel, it is nice and easy. It would be more powerful if we can support colors for the bar chart and support more tips and tricks.
Thanks and with you all the best.
from laravel-charts.
Support colors for bar chart please
from laravel-charts.
Fixed by #69
from laravel-charts.
Related Issues (20)
- Filter Different account type HOT 2
- labels in the outputted JS can't have single quote " ' " in them.
- how to use chart_height HOT 1
- Bad Method Call HOT 2
- How i can show only number not pointed value HOT 3
- error : undefined array key "stacked" HOT 1
- Chart Color issue
- Chart can't group on Model Enum properties HOT 4
- Call to undefined relationship [user] on model XXXXXXX HOT 1
- Hi! Thanks!
- Multiple dataset from same Model but grouped by a foreign key HOT 1
- After ajax call how to update chart?
- Laravel Chart can't show attribute value from query
- table not show i will use tailwind class on column_class
- colors HOT 2
- NoSQL Compatibility HOT 4
- Sorting issue HOT 1
- Something went wrong HOT 7
- jquery ajax support??? HOT 1
- Allow user to modify labels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-charts.