Пример #1
0
 public static Plot create(Element container, Series[] series, PlotOptions options) {
   JavaScriptObject optionsJs = null;
   if (null == options) {
     optionsJs = null;
   } else {
     optionsJs = JSONHelper.getJSONObject(options).getJavaScriptObject();
   }
   return PlotImpl.create(
       container,
       JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject(),
       optionsJs);
 }
Пример #2
0
 public static void loadDataImages(
     Series[] series, PlotOptions options, LoadImagesCallback callback) {
   JavaScriptObject optionsJs = null;
   if (null == options) {
     optionsJs = null;
   } else {
     optionsJs = JSONHelper.getJSONObject(options).getJavaScriptObject();
   }
   PlotImpl.loadDataImages(
       JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject(),
       optionsJs,
       callback);
 }
Пример #3
0
 public final void setData(Series[] series) {
   PlotImpl.setData(
       this, JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject());
 }
Пример #4
0
 public static Plot create(Element container, Series[] series) {
   return PlotImpl.create(
       container, JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject());
 }