Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AASeriesElement的字体颜色如何修改?如图 #1235

Closed
Jacky-LinPeng opened this issue Aug 21, 2021 · 3 comments
Closed

AASeriesElement的字体颜色如何修改?如图 #1235

Jacky-LinPeng opened this issue Aug 21, 2021 · 3 comments

Comments

@Jacky-LinPeng
Copy link

该处的颜色可以修改吗?
QQ20210821-154350@2x

@AAChartModel
Copy link
Owner

AAChartModel commented Aug 21, 2021

@AAChartModel
Copy link
Owner

这个可点按的小圆点是 AALegend 图表图例, 设置图例样式的关键内容

    //设定图例项的CSS样式。只支持有关文本的CSS样式设定。
    /*默认是:{
     "color": "#333333",
     "cursor": "pointer",
     "fontSize": "12px",
     "fontWeight": "bold"
     }
     */
    aaOptions.legend
    .itemStyleSet(AAItemStyle.new
                  .colorSet(AAColor.whiteColor)//字体颜色
                  .fontSizeSet(@"13px")//字体大小
                  .fontWeightSet(AAChartFontWeightTypeThin)//字体为细体字
                  );

@Jacky-LinPeng
Copy link
Author

感谢!初次看到这个库,真的好强大,设计和封装都很好!大赞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants