All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.ui.tvm.widget.chart.js.ChartConfig Maven / Gradle / Ivy

There is a newer version: 0.9.10
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.ui.tvm.widget.chart.js;

import org.teavm.jso.JSBody;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;

/**
 * {@link JSObject} to wrap {@code Chart} from {@code Chart.js}.
 */
@SuppressWarnings("javadoc")
public abstract class ChartConfig implements JSObject {

  @JSProperty
  public abstract String getType();

  @JSProperty
  public abstract void setType(String type);

  @JSProperty
  public abstract ChartData getData();

  @JSProperty
  public abstract void setData(ChartData data);

  @JSProperty
  public abstract ChartOptions getOptions();

  @JSProperty
  public abstract void setOptions(ChartOptions options);

  @JSBody(params = { "type", "data", "options" }, script = "return {type:type,data:data,options:options};")
  public static native ChartConfig of(String type, ChartData data, ChartOptions options);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy