Packages

  • package root

    Smile (Statistical Machine Intelligence and Learning Engine) is a fast and comprehensive machine learning, NLP, linear algebra, graph, interpolation, and visualization system in Java and Scala.

    Smile (Statistical Machine Intelligence and Learning Engine) is a fast and comprehensive machine learning, NLP, linear algebra, graph, interpolation, and visualization system in Java and Scala. With advanced data structures and algorithms, Smile delivers state-of-art performance.

    Smile covers every aspect of machine learning, including classification, regression, clustering, association rule mining, feature selection, manifold learning, multidimensional scaling, genetic algorithms, missing value imputation, efficient nearest neighbor search, etc.

    Definition Classes
    root
  • package smile
    Definition Classes
    root
  • package plot

    Data visualization.

    Data visualization.

    Definition Classes
    smile
  • package vega
    Definition Classes
    plot
  • Facet
  • Layer
  • VegaLite
  • View
  • ViewComposition
  • ViewLayoutComposition
t

smile.plot.vega

ViewComposition

trait ViewComposition extends VegaLite

All view composition specifications (layer, facet, concat, and repeat) can have the resolve property for scale, axes, and legend resolution.

Vega-Lite determines whether scale domains should be unioned. If the scale domain is unioned, axes and legends can be merged. Otherwise they have to be independent.

There are two options to resolve a scale, axis, or legend: "shared" and "independent". Independent scales imply independent axes and legends.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ViewComposition
  2. VegaLite
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract val spec: JsObject

    The specification

    The specification

    Definition Classes
    VegaLite

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ViewComposition toany2stringadd[ViewComposition] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ViewComposition, B)
    Implicit
    This member is added by an implicit conversion from ViewComposition toArrowAssoc[ViewComposition] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def autosize(type: String = "pad", resize: Boolean = false, contains: String = "content"): VegaLite

    Sets the overall size of the visualization.

    Sets the overall size of the visualization. The total size of a Vega-Lite visualization may be determined by multiple factors: specified width, height, and padding values, as well as content such as axes, legends, and titles.

    resize

    A boolean flag indicating if autosize layout should be re-calculated on every view update.

    contains

    Determines how size calculation should be performed, one of "content" or "padding". The default setting ("content") interprets the width and height settings as the data rectangle (plotting) dimensions, to which padding is then added. In contrast, the "padding" setting includes the padding within the view size calculations, such that the width and height settings indicate the total intended size of the view.

    Definition Classes
    VegaLite
  8. def background(color: String): VegaLite

    CSS color property to use as the background of the entire view.

    CSS color property to use as the background of the entire view.

    Definition Classes
    VegaLite
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def config(properties: JsObject): VegaLite

    Sets Vega-Lite configuration object that lists configuration properties of a visualization for creating a consistent theme.

    Sets Vega-Lite configuration object that lists configuration properties of a visualization for creating a consistent theme. This property can only be defined at the top-level of a specification.

    Definition Classes
    VegaLite
  11. def data(url: String, format: JsValue = JsUndefined): VegaLite

    Sets the url of the data source.

    Sets the url of the data source.

    url

    An URL from which to load the data set.

    format

    Type of input data: "json", "csv", "tsv", "dsv". Default value: The default format type is determined by the extension of the file URL. If no extension is detected, "json" will be used by default.

    Definition Classes
    VegaLite
  12. def data(df: DataFrame): VegaLite

    Sets a data frame describing the data source.

    Sets a data frame describing the data source.

    Definition Classes
    VegaLite
  13. def data(rows: JsObject*): VegaLite

    Sets an array of objects describing the data source.

    Sets an array of objects describing the data source.

    Definition Classes
    VegaLite
  14. def data(json: JsArray): VegaLite

    Sets a JSON array describing the data source.

    Sets a JSON array describing the data source. Set to null to ignore the parent’s data source. If no data is set, it is derived from the parent.

    Definition Classes
    VegaLite
  15. def description(description: String): VegaLite

    Sets the description of this mark for commenting purpose.

    Sets the description of this mark for commenting purpose.

    Definition Classes
    VegaLite
  16. def embed: String

    Returns the HTML of plot specification with Vega Embed.

    Returns the HTML of plot specification with Vega Embed.

    Definition Classes
    VegaLite
  17. def ensuring(cond: (ViewComposition) => Boolean, msg: => Any): ViewComposition
    Implicit
    This member is added by an implicit conversion from ViewComposition toEnsuring[ViewComposition] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (ViewComposition) => Boolean): ViewComposition
    Implicit
    This member is added by an implicit conversion from ViewComposition toEnsuring[ViewComposition] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: => Any): ViewComposition
    Implicit
    This member is added by an implicit conversion from ViewComposition toEnsuring[ViewComposition] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): ViewComposition
    Implicit
    This member is added by an implicit conversion from ViewComposition toEnsuring[ViewComposition] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def iframe(id: String = java.util.UUID.randomUUID.toString): String

    Returns the HTML wrapped in an iframe to render in notebooks.

    Returns the HTML wrapped in an iframe to render in notebooks.

    id

    the iframe HTML id.

    Definition Classes
    VegaLite
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def name(name: String): VegaLite

    Sets the name of the visualization for later reference.

    Sets the name of the visualization for later reference.

    Definition Classes
    VegaLite
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def padding(left: Int, top: Int, right: Int, bottom: Int): VegaLite

    Specifies padding for each side.

    Specifies padding for each side. The visualization padding, in pixels, is from the edge of the visualization canvas to the data rectangle.

    Definition Classes
    VegaLite
  33. def padding(size: Int): VegaLite

    Specifies padding for all sides.

    Specifies padding for all sides. The visualization padding, in pixels, is from the edge of the visualization canvas to the data rectangle.

    Definition Classes
    VegaLite
  34. def resolveAxis(axis: JsObject): ViewComposition

    Axis resolutions.

    Axis resolutions. For axes, resolutions can be defined for x and y (positional channels).

  35. def resolveLegend(legend: JsObject): ViewComposition

    Legend resolutions.

    Legend resolutions. For legends, resolutions can be defined for color, opacity, shape, and size (non-positional channels).

  36. def resolveScale(scale: JsObject): ViewComposition

    Scale resolutions.

    Scale resolutions. For scales, resolution can be specified for every channel.

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def title(title: String): VegaLite

    Sets a descriptive title to a chart.

    Sets a descriptive title to a chart.

    Definition Classes
    VegaLite
  39. def toString(): String
    Definition Classes
    VegaLite → AnyRef → Any
  40. def transform(transforms: JsObject*): VegaLite

    An array of data transformations such as filter and new field calculation.

    An array of data transformations such as filter and new field calculation. Data transformations in Vega-Lite are described via either view-level transforms (the transform property) or field transforms inside encoding (bin, timeUnit, aggregate, sort, and stack).

    When both types of transforms are specified, the view-level transforms are executed first based on the order in the array. Then the inline transforms are executed in this order: bin, timeUnit, aggregate, sort, and stack.

    Definition Classes
    VegaLite
  41. def transform(transforms: JsArray): VegaLite

    An array of data transformations such as filter and new field calculation.

    An array of data transformations such as filter and new field calculation. Data transformations in Vega-Lite are described via either view-level transforms (the transform property) or field transforms inside encoding (bin, timeUnit, aggregate, sort, and stack).

    When both types of transforms are specified, the view-level transforms are executed first based on the order in the array. Then the inline transforms are executed in this order: bin, timeUnit, aggregate, sort, and stack.

    Definition Classes
    VegaLite
  42. def usermeta(data: JsValue): VegaLite

    Optional metadata that will be passed to Vega.

    Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata.

    Definition Classes
    VegaLite
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ViewComposition toStringFormat[ViewComposition] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (ViewComposition, B)
    Implicit
    This member is added by an implicit conversion from ViewComposition toArrowAssoc[ViewComposition] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from VegaLite

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromViewComposition to any2stringadd[ViewComposition]

Inherited by implicit conversion StringFormat fromViewComposition to StringFormat[ViewComposition]

Inherited by implicit conversion Ensuring fromViewComposition to Ensuring[ViewComposition]

Inherited by implicit conversion ArrowAssoc fromViewComposition to ArrowAssoc[ViewComposition]

Ungrouped