문제

I have a jqplot barchart rendering correctly. The chart has 2 series of data, one is is rendered blue and the other is rendered red. When I enable the pointLabels plugin to output the bar value above the bar the text is rendered in the default page font colour. I would like the font to use the colour of the bar each time.

Thanks.

도움이 되었습니까?

해결책

It looks like the point labels are given classes based on their series. So point labels in the first series will have a class called jqplot-series-0, the second series will have jqplot-series-1 and so on. Just target them with some CSS and it should work.

.jqplot-series-0 {
    color: red;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top