How to change default colors for charts
Custom CSS
by jesperra
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
CSS
/* CHARTS */
.fm-charts-color-1 {
fill: #93baf9 !important;
}
.fm-charts-color-2 {
fill: #5492f7 !important;
}
.fm-charts-color-3 {
fill: #f45ff7 !important;
}
.fm-charts-color-4 {
fill: #022354 !important;
}
.fm-charts-color-5 {
fill: #949be8 !important;
}
.fm-charts-color-6 {
fill: #cbdcf2 !important;
}
.fm-charts-color-7 {
fill: none !important;
}
JavaScript
var pivot = new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
toolbar: true,
report: {
dataSource: {
filename: "data/data.csv"
},
slice: {
columns: [{
uniqueName: "[Measures]"
}],
rows: [{
uniqueName: "Country"
}],
measures: [{
uniqueName: "Price",
format: "currency"
}],
},
options: {
viewType: "charts",
chart: {
type: "pie"
}
}
}
});