The method addValue(Number, Comparable, Comparable) is ambiguous for the type DefaultCategoryDataset

版权声明:博客知识产权来源命运的信徒,切勿侵权 https://blog.csdn.net/qq_37591637/article/details/86655423

错误背景:

我在用JfreeChart做折线趋势图,查询数据库里面的数据,显示在页面上!


 错误代码块如下



 错误原因

参数类型不匹配

这个方法的第一个类型是double类型,第二个 第三个是String类型的!


解决方案

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/86655423