Package io.jmix.charts.model
Class JsFunction
java.lang.Object
io.jmix.charts.model.JsFunction
- All Implemented Interfaces:
Serializable
JavaScript function definition.
Code example:
Code example:
@Autowired private SerialChart serialChart; ... Graph graph = serialChart.getGraphs().get(0); graph.setBalloonFunction(new JsFunction( "function(event){" + "var result = 'Income in ' + event.category + ': '" + "+ event.serialDataItem.dataContext.expenses;" + "return result;}"));
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JsFunction
-
-
Method Details
-
getCode
-