Jump Line Chart

Overview

Jump Line Chart is similar to Line Chart and Step Line Chart: Jump Line considers the data points as the center points of "jumps" - horizontal line segments of a category width.

The difference between Step Line and Jump Line is in vertical line segments, connecting the "steps" of a Step Line: nothing connects the points in JumpLine.

Jump Line Charts are usually used for demonstrating rates.

API
Classanychart.core.cartesian.series.JumpLine
DATA
Data Fieldsx, value
Multiple SeriesYES
OPTIONS
StackedN/A
VerticalVertical Jump Line
3DN/A
Error BarsJump Line Chart with Error Bars
SUPPORTED CHART PLOTS
PolarN/A
RadarN/A
ScatterN/A
StockStock Line
RELATED TYPES
Line
Step Line
SEE ALSO
Chartopedia: Jump Line Chart
General Settings

Quick Start

To create a chart, use the anychart.line() chart constructor.

To create a Jump line series call the jumpLine() method.

The following sample demonstrates how a basic Jump Line chart is created:

// create a data set
var data = [
  {x: "January", value: 10000},
  {x: "February", value: 12000},
  {x: "March", value: 18000},
  {x: "April", value: 11000},
  {x: "May", value: 9000}
];

// create a chart
var chart = anychart.line();

// create a jump line series and set the data
var series = chart.jumpLine(data);

// set the container id
chart.container("container");

// initiate drawing the chart
chart.draw();

Playground

General Settings

In AnyChart there are many settings that are configured in the same way for all chart types, including the Jump Line chart (for example, legend and interactivity settings).

Read the overview of general settings: General Settings.

Special Settings

Appearance

Here is a full list of methods used to configure visual settings that are available for the Jump Line series:

You can learn more from the Appearance Settings section.

In the sample below, there are two Jump Line series with some of the appearance settings configured:

// create the first series
var series1 = chart.jumpLine(seriesData_1);

// configure the visual settings of the first series
series1.stroke("#00cc99", 1, "10 5", "round");
series1.hoverStroke("#00cc99", 2, "10 5", "round");
series1.selectStroke("#00cc99", 4, "10 5", "round");

// create the second series
var series2 = chart.jumpLine(seriesData_2);

// configure the visual settings of the second series
series2.stroke("#0066cc");
series2.hoverStroke("#0066cc", 2);
series2.selectStroke("#0066cc", 4);

Playground

Labels

Labels are text or image elements that can be placed anywhere on any chart (you can enable them on a whole series or in a single point). For text labels, font settings and text formatters are available.

Tooltips

A Tooltip is a text box displayed when a point on a chart is hovered. There is a number of visual and other settings available: for example, you can edit the text by using font settings and text formatters, change the style of background, adjust the position of a tooltip, and so on.

Vertical Jump Line

Most types of series in AnyChart can be drawn both in horizontal and vertical orientation: Vertical Charts (Overview).

Here is the information about creating Vertical Jump Line series:

You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.