示例#1
0
  public void loadChart() {

    Chart chart = config.getChartBuilder().getChart(getParams());

    String chartContent = FileUtil.getContent(config.getChartFile());
    chartContent =
        chartContent.replace("$categories", CategoriesFormat.format(chart.getCategories()));
    chartContent =
        chartContent.replace(
            "$series", SeriesFormat.format(chart.getSeries(), config.getPointRadius()));

    JavaScriptUtil.loadChart(chartContent, config.getJsCallbackName(), this);
  }
示例#2
0
 public static void loadFile(String fileName) {
   execute(FileUtil.getContent(fileName));
 }