Browse Source

JTDS问题

pull/1/head
richie 9 years ago
parent
commit
064d6012a0
  1. 4
      src/com/fr/solution/plugin/chart/echarts/base/NewChart.java
  2. 2
      src/com/fr/solution/plugin/chart/echarts/base/NewPlot.java

4
src/com/fr/solution/plugin/chart/echarts/base/NewChart.java

@ -26,6 +26,10 @@ public class NewChart extends Chart {
public BaseChartGlyph createGlyph(ChartData chartData) {
NewGlyph glyph = new NewGlyph();
glyph.setGeneralInfo(this);
if (newPlot != null) {
glyph.setLegendGlyph(newPlot.createChartLegendGlyph(chartData));
glyph.setTitleGlyph(newPlot.createChartTitleGlyph(chartData));
}
glyph.setWrapperName(getWrapperName());
glyph.setChartImagePath(getImagePath());
glyph.setRequiredJS(getRequiredJS());

2
src/com/fr/solution/plugin/chart/echarts/base/NewPlot.java

@ -14,7 +14,7 @@ public abstract class NewPlot extends Plot {
}
public NewTitleGlyph createChartTitleGlyph(ChartData chartData) {
return null;
return new NewTitleGlyph("iPhone", "iPhone");
}
public NewLegendGlyph createChartLegendGlyph(ChartData chartData) {

Loading…
Cancel
Save