CalicoViz

viz.CalicoViz$
object CalicoViz

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CalicoViz.type

Members list

Value members

Concrete methods

def viewEmbed(chart: Spec, inDivOpt: Option[Resource[IO, HtmlDivElement[IO]]], embedOpt: Option[EmbedOptions]): Resource[IO, (HtmlDivElement[IO], IO[VegaView])]

Embed a chart in a div. This method is a good choice if you are not at all worried about performance (mostly you won't be), you want to get started quickly, and you want things to "just work".

Embed a chart in a div. This method is a good choice if you are not at all worried about performance (mostly you won't be), you want to get started quickly, and you want things to "just work".

There is one "gotcha". If you choose to provide your own div, it must have a well defined width and height.

If it does not the chart will not initialize properly, and it will not recover from this failure.

Value parameters

chart

- the chart you wish to plot

embedOpt

- optionally, the embed options you wish to use

inDivOpt

- optionally, the div you wish to plot into. If you don't provide one, one will be created for you.

Attributes

Source
package.scala