Marker Chart


Marker chart, also known as a point chart is identical to a line chart without the lines. A marker chart shows only endpoints of segments that make up each line.


Depending on data model and the visualization purpose the marker chart may contain single series or multi series.

Single Series

Let's see single-series marker chart created using the following data - ACME Movie studio total box office through several years:

Year Box office (billions)
2000 $1100
2001 $880
2002 $1100
2003 $1500
2004 $921
2005 $1000
2006 $1400

Now we need to convert this data table into js format, this format will be accepted by AnyChart. In terms of AnyChart first column represents year and second one contains total income of Box office. Converted Data looks like:

    chart.yAxis().title('Box office');
        ['2000', 1100],
        ['2001', 880],
        ['2002', 1100],
        ['2003', 1500],
        ['2004', 921],
        ['2005', 1000],
        ['2006', 1400]

As you can see, we've specified chart type as Marker.

Look at the chart sample below and click on it and launch preview and full configured data in our playground.

JsFiddle Playground


To compare two or more data rows you have to use multi-series line charts as it shown in the sample below.

Let's compare ACME Movies box office to other studios:

Year ACME Galaxy CSS HARE Soundy Space
2000 $1100 $1000 $1500 $700 $600 $900
2001 $880 $950 $1300 $800 $700 $1200
2002 $1100 $800 $1000 $900 $1500 $1000
2003 $1500 $1000 $1050 $770 $1200 $1100
2004 $921 $890 $1500 $930 $1300 $1200
2005 $1000 $1000 $1330 $1350 $900 $1370
2006 $1400 $800 $950 $1200 $1700 $1050

As we do in single series line sample above we need to convert this table into js format, the only difference between these two samples is the fact that now we have several series of data - one series for each studio(we will show here only two series):

        [2000, 1100],
        [2001, 880],
        [2002, 1100],
        [2003, 1500],
        [2004, 921],
        [2005, 1000],
        [2006, 1400]
        [2000, 1000], 
        [2001, 950],  
        [2002, 800],  
        [2003, 1000], 
        [2004, 890],  
        [2005, 1000], 
        [2006, 800],  

JsFiddle Playground

Marker scatter plot

The sample of scatter marker chart can be found in Scatter Charts Tutorial. –>


In AnyChart axis is an object that allows you to configure chart grid, axis line along with tick marks and labels, axis scale and settings and many more. All axis features are described in Axes Basic tutorial, in this section we will quickly demonstrate how axis orientation can be adjusted, how axis scale can be inverted and how minimum and maximum values can be controlled.


With AnyChart you can place axes to any side if the chart, all you need to do is to adjust .orientation() parameter of .yAxis() or .xAxis() methods.

Positioning depends on plot type and inversion of axes, you will find list of all possible orientation and inversion settings in Axes Orientation tutorial.


And here is the demonstration of this feature on the Single-series sample:

JsFiddle Playground


AnyChart allows to invert any axis: Y, X or any extra axis. Inversion is controlled by scale().inverted():


And here is the demonstration of Y Axis inversion on the Single-series sample:

JsFiddle Playground

Minimum and Maximum

By default AnyChart calculates axis minimum and maximum automatically, you can see this on the scale inversion chart sample above: minimal value on the Y Axis is 800, and maximum is 1600. You can control these values by setting .maximum() and ..minimum() parameters of a .scale() method:


And here is the demonstration of maximum and minimum values on the Single-series sample:

JsFiddle Playground


In this section we will describe main parts of marker chart visualization and ways to adjust it. Visual appearance of areas is defined using certain methods. For Marker chart the main thing is the .fill() parameter.

Basic Sample

Now, let's look how to create a simple style and apply it to the chart. As we've already said style consists of several elements, here is an js structure:

        ['2000', 1100],
        ['2001', 880],
        ['2002', 1100],
        ['2003', 1500],
        ['2004', 921],
        ['2005', 1000],
        ['2006', 1400]

Using such settings we've defined markers of Gold color and a couple of effects. Also, we've defined that when user will move cursor over an element it will be highlighted with a DarkRed and made bigger.

JsFiddle Playground

Labels and Tooltips

In this section we will explain how to add and configure data labels and tooltips..

If you want to configure data labels and tooltips for all series - you should do that using .labels() and .tooltip() methods. You can tune their visual appearance, positioning and format. Let's do that in the following example: we will make data labels appear to the top of the data points, also, we will format labels so they show only the value corresponding to the point and tooltip will show detailed description.

JsFiddle Playground

Learn more about labels and tooltips in Labels and tooltips Full Keywords reference and formatting guide:Labels and tooltips Full reference of data labels settings can be found in XML Reference, particularly and


AnyChart uses default color palette to colorize data elements of chart automatically even if you have not define special colors. But you can set and apply the color to exact data point.

Colorizing Elements

Let's demonstrate how to apply different colors to different data series. To apply the color to the exact series we need to set .fill() parameters in the .marker() method. In the sample below we have 5 series with sample data and we'll color each series to different color. Here is the sample:

JsFiddle Playground

In the sample below we will see how we can colorize individual points. We have chart with one series and predefined color for all elements. We will set "Rgb(180,77,77)" color for minimum point and "Rgb(77,180,77)" for the maximal one. As you see it is very easy to do by setting .fill() parameter for the point.

JsFiddle Playground

Important Note:

AnyChart takes care of visualization and users convenience seriously - that is why we have a number of ways to set colors, for example, instead of "Rgb(180,77,77)" you can set "HSV(?,?,?)" or "HTMLConstant" or "#HEXCode"- and the color will be the same. Depending on your system/site/application design you may need - and use - any of this color setting methods. But even this is not everything about colors in AnyChart: read more about setting colors below and in the following Help Sections:

Different ways of setting colors of elements

Hatch Fills

AnyChart technology allows printing of charts. Some color printers print colors unpredictable and very often it is hard to identify similar colors. Also it is impossible to identify colors on prints of b/w (monochrome) printers. AnyChart has very useful feature - hatch fills, ideal for differentiating elements for black and white display or for those who are color blind. Hatch fill is fully-independent structure, it doesn't rely on color fill and it has own settings and palettes. To see whole range of available hatch types see Hatch tutorial.

To demonstrate hatch fill feature we've prepared the following sample. As you see it is completely monochrome. We have chart with 5 series with 2 data points in each. For every series we've applied different hatch fills by setting .hatchFill() parameter.

JsFiddle Playground

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