I was just looking for the same thing and found a maybe better solution. The best way would probably be
dimple.chart.defaultColors (look here). Just for future lookups...
- How to change color of line in line chart using dimple.js?
- How to change color of donut chart created using d3.js?
- How to change color of a data point in line chart according to a condition?
- How to change the scale of axes in line chart using d3.js?
- How to change line color in d3js according to axis value?
- nvd3.js - unable to change color of line in line chart
- How to plot animated line chart using d3 while the data table is required to be updated every 1 second?
- How to change the viewfinder (focus chart) of a NVD3 line chart programmatically?
- How to create a % difference arrow line with value in a bar chart using D3.js
- How to change D3 Dimple tooltips with chart data?
- How to place Circles(dots) in line chart using "d3.js " library?
- How to change the color of a d3.js axis line
- How do I display an icon at a point on a line chart using d3.js
- how i can put more lines in Line Plus Bar Chart using nvd3.js?
- How to toggle lines in a line chart using a legend
- how to change C3JS vertical tooltip line color and hide y axies line
- How to change json file in d3.js and update chart using select options
- change the color of the lines in the line chart vegalite
- NVD3 Cumulative Line Chart : How to set different back ground color for specific X axis
- how to change x-axis length of dimple chart
- D3.JS how to load 3 csv files and change data on line chart with button click event?
- How to change color of line according to threshold values in C3.js/D3.js charts?
- How to change color only for data grid or x and y axis in chart in D3.js
- How to draw line plus bar chart using highcharts/d3.js or any other chart library?
- How to change D3js Gauge chart color, using update function?
- How to draw a d3.js line chart using angularjs directives
- How to change bars color on mouse hover on d3 using join?
- How do I set a different range for line chart embedded in a bar chart using d3.js
- How to change the shape of line to closed bars in existing time series diagram using D3
More Query from same tag
- d3js tooltip is positioned incorrectly on bootstrap web
- how to display date and time both in xScale in D3
- Simulating Mouse event in Microsoft Edge for d3
- Invalid value for<path> attribute in d3.js
- d3.js Double-click is not Releasing Nodes
- Add image in d3.js timeline chart instead of points
- Error: <path> attribute d: Expected number D3
- D3 Graphs in Rails: multiple Js files overlapping
- Creating a flexible bar chart with a complex dataset using D3
- D3plus options having no effect on chart
- Appending text to points in angular-nvd3
- d3.js scatter matrix with brushing - scale error
- Multiple D3 Graphs, Two Axis', No Category's
- How to add numbers to bars with D3.js?
- D3: Is there a simple way to enlarge a map statically?
- Bubble highlight feature in d3js bubble chart
- D3 map visible area coordinates
- How do I arrange all bubbles in circular manner in bubble chart with force layout?
- JSON data in d3js
- Multi line graph with ordinal x-axis
- How to perform a centering of a node in D3.js version 4?
- Assign Class to All Elements of Same Bound Data
- d3.js enter() not binding to data correctly - re-creating existing data
- Passing JSON from Grails Controller to d3 - how to get the .gsp side working?
- How do I use mutationobserver instead of mutation events?
- Move legend outside the chart area in C3.js
- NaN node positions after setting initial position in d3 force-directed network
- d3.js:refresh the chart with new dataset