Currently, I am faced with a challenge in SugarCRM as I try to modify the colors of nvd3 charts using CSS. The pie chart colors are structured differently compared to other nvd3 charts, making it difficult for me to figure out how to customize them through CSS. Below, you will find a portion of the HTML code for an nvd3 bar chart along with the corresponding CSS that is functional. Additionally, there is a snippet of the HTML code for an nvd3 pie chart.
Bar chart HTML:
<g class="nv-group nv-series-0" fill="#1f77b4" stroke="#1f77b4" style="stroke-opacity: 1; fill-opacity: 1;">
CSS to adjust the color of the bar chart:
.nv-group.nv-series-0 {
fill: #2A6EBB;
stroke: #2A6EBB;
}
Pie chart HTML:
< g class="nv-slice nv-series-0">
<path d="M1.055492460015125e-14,-172.375A172.375,172.375 0 1,1 -97.2397105173445,142.32912324434182L0,0Z" style="fill: rgb(31, 119, 180); stroke: rgb(255, 255, 255); stroke-width: 3px; stroke-opacity: 1;">
The colors for the pie chart are specified within the style attribute of a path tag, presenting a challenge for me to manipulate them using CSS. If you have any insights or suggestions on how to address this issue, I would greatly appreciate your assistance!