You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.util.

Class Util

  • public class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • toHighchartsTS

        public static long toHighchartsTS​(Instant date)

        Gets the number of miliseconds from the Java epoch of 1970-01-01T00:00:00Z.

        Parameters:

        date -

        Returns:

      • toServerInstant

        public static Instant toServerInstant​(double rawClientSideValue)

        Converts UTC based raw date value from the client side rendering library to an Instant value.

        Parameters:

        rawClientSideValue - the raw value from the client side

        Returns:

        an Instant value