Class Credits
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.Credits
- All Implemented Interfaces:
Serializable
Highchart by default puts a credits label in the lower right corner of the
chart. This can be changed using these options.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHref()getStyle()getText()voidsetEnabled(Boolean enabled) Whether to show the credits text.voidThe URL for the credits label.voidsetPosition(Position position) Position configuration for the credits label.voidCSS styles for the credits label.voidThe text for the credits label.voidsetUnsafeHref(String href) Sets the URL for the credits label without validating its scheme.
-
Constructor Details
-
Credits
public Credits() -
Credits
-
Credits
-
-
Method Details
-
getEnabled
- See Also:
-
setEnabled
Whether to show the credits text.Defaults to: true
-
getHref
- See Also:
-
setHref
The URL for the credits label.Defaults to: http://www.highcharts.com
-
setUnsafeHref
Sets the URL for the credits label without validating its scheme.Unlike
setHref(String), this method does not reject URLs based on the "com.vaadin.safeUrlSchemes" configuration. Use it only for URLs that are fully under your control and known to be safe. Passing untrusted input here can expose the application to cross-site scripting (XSS) attacks.- Parameters:
href- the URL for the credits label- See Also:
-
getPosition
- See Also:
-
setPosition
Position configuration for the credits label. -
getStyle
- See Also:
-
setStyle
CSS styles for the credits label.Defaults to: { "cursor": "pointer", "color": "#999999", "fontSize": "10px" }
-
getText
- See Also:
-
setText
The text for the credits label.Defaults to: Highcharts.com
-