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); }
public static void loadFile(String fileName) { execute(FileUtil.getContent(fileName)); }