
chart 控件中数据点标签字体的颜色怎么设置
展开全部
Font labelFont = new Font("SansSerif", Font.TRUETYPE_FONT, 12); CategoryPlot categoryplot = (CategoryPlot) chart.getPlot(); CategoryAxis domainAxis = categoryplot.getDomainAxis(); domainAxis.setLabelFont(labelFont);// X轴的标题文字字体 domainAxis.setTickLabelFont(labelFont);//X轴坐标上数值字体 domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45); // X轴上的Lable让其45度倾斜 // 设置距离图片左端距离 domainAxis.setLowerMargin(0.0); // 设置距离图片右端距离 domainAxis.setUpperMargin(0.0);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询