首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

JFreeChart饼状图Web应用及JFreeChart中文乱码解决

对于任何一款数据统计,或者是数据管理软件来说有一个直观的图形显示各个区域数据的分布无疑是让系统更好的为人服务的一个特色。比如说:进销存软件,CMS,DRP。一个直观的数据分布、统计显示是相当的重要,这里我就是简单的使用JFreeChart演示一下。 关于使用JFreeChart乱码的问题,我所知道的有两种不同的解决方案,一种是在生成图片的时候要设置编码格式,这个试了一下,本地生成图片没问题,不过web的没有测试成功;第二种是使用老版本的JfreeChart,目前最新的是1.0.13,使用1.0.10就可以解决乱码问题。不知道是不是这个组件开发的问题。JFreeChart1.0.10下载地址: http://u.115.com/file/f4571d9153

02

HDOJ(HDU) 1678 Shopaholic

Problem Description Lindsay is a shopaholic. Whenever there is a discount of the kind where you can buy three items and only pay for two, she goes completely mad and feels a need to buy all items in the store. You have given up on curing her for this disease, but try to limit its effect on her wallet. You have realized that the stores coming with these offers are quite elective when it comes to which items you get for free; it is always the cheapest ones. As an example, when your friend comes to the counter with seven items, costing 400, 350, 300, 250, 200, 150, and 100 dollars, she will have to pay 1500 dollars. In this case she got a discount of 250 dollars. You realize that if she goes to the counter three times, she might get a bigger discount. E.g. if she goes with the items that costs 400, 300 and 250, she will get a discount of 250 the first round. The next round she brings the item that costs 150 giving no extra discount, but the third round she takes the last items that costs 350, 200 and 100 giving a discount of an additional 100 dollars, adding up to a total discount of 350. Your job is to find the maximum discount Lindsay can get.

01
领券