JHeatChart是一个Java类,用来创建热图图表。
示例代码:
//Createsomedummydata.double[][]data=newdouble[][]{{3,2,3,4,5,6}, {2,3,4,5,6,7}, {3,4,5,6,7,6}, {4,5,6,7,6,5}};//Createourheatchartusingourdata.HeatChartchart=newHeatChart(data);//Customisethechart.chart.setTitle("Thisismycharttitle");chart.setXAxisLabel("XAxis");chart.setYAxisLabel("YAxis");//Outputthecharttoafile.chart.saveToFile(newFile("my-chart.png"));
评论