package c3

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A line segment within a Line chart

type kind = [
  1. | `Line
    (*

    Render with straight lines

    *)
  2. | `Spline
    (*

    Render with splines to make it appear smooth

    *)
  3. | `Area
    (*

    Render with straight lines with a translucent fill underneath

    *)
  4. | `Area_spline
    (*

    Render with splines to make it appear smooth with a translucent fill underneath

    *)
  5. | `Area_step
    (*

    Render as horizontal steps with a translucent fill underneath

    *)
  6. | `Bar
    (*

    Render as discrete vertical bars

    *)
]
val string_of_kind : kind -> string
type t

An unrendered line segment within a Line chart

val make : points:(float * float) list -> label:string -> ?kind:kind -> unit -> t

Create an unrendered line segment from a set of points and a label. By default it will render with straight lines.