Skip to content

User JSON SlopeChartIndicator

roosit edited this page Oct 16, 2026 · 2 revisions

Elevation Chart JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the slopeChart indicator for editing .vttp files by hand.

An empty object {} in a numeric setting means "the default value": this is how the template looks until the value has been changed. To set your own value, replace {} with {"value": number}. The default values are given in the description of each setting.

Full Template

{
  "name": "com.velitask.plagin.official.slopeChart",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "Slope": {},
      "geoZoom": {},
      "EleChartScale": {},
      "line": {
        "lineColor": { "r": 255, "g": 255, "b": 255, "a": 255 },
        "thickness": {},
        "style": { "value": 0 },
        "dashPattern": { "value": "" }
      },
      "fillPlain": { "r": 255, "g": 255, "b": 255, "a": 255 },
      "fillUp": { "r": 255, "g": 0, "b": 0, "a": 255 },
      "fillDown": { "r": 0, "g": 255, "b": 0, "a": 255 },
      "fillTransparency": {}
    }
  }
}

Settings

Slope

Selects the slope and elevation sensor ("Slope"). Leave it empty in a template: the sensor is picked automatically when the indicator is added to a project.

{
  "Slope": {}
}
Field Values What it does
sourceId {"value": source id} In a real project it selects the data source. Absent in a template.
sensorId {"value": sensor id} In a real project it selects the specific sensor. Absent in a template.

geoZoom

The horizontal scale ("Map zoom"). The larger the value, the more detailed and shorter the displayed stretch of the route. 14 by default.

{
  "geoZoom": { "value": 14 }
}
Field Values What it does
value integer 8..19 Zoom level.

How much distance falls on one pixel of the layer:

value 8 9 10 11 12 13 14 15 16 17 18 19
meters per pixel 611 306 153 76 38 19 9.55 4.78 2.39 1.19 0.60 0.30

EleChartScale

The vertical exaggeration of elevations ("Elevation scale"). Note the capital letter E in the name. 10 by default.

{
  "EleChartScale": { "value": 10 }
}
Field Values What it does
value integer 1..50 How many times the elevation is stretched relative to the horizontal scale.

line

The profile line and the marker ("Line"). The indicator uses the color and thickness; the line style and the dash pattern do not affect drawing.

{
  "line": {
    "lineColor": { "r": 255, "g": 255, "b": 255, "a": 255 },
    "thickness": { "value": 1 },
    "style": { "value": 0 },
    "dashPattern": { "value": "" }
  }
}
Field Values What it does
lineColor r, g, b, a Color of the line and the marker ("Line color").
thickness.value integer 0..50 Line thickness ("Thickness"); 1 by default. With 0 the marker is not visible.
style.value integer 0..7 Line style ("Line style"); not used in this indicator.
dashPattern.value string Dash pattern; not used in this indicator.

Line color:

Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Opacity: 0 is fully transparent, 255 is opaque.

Values of style.value:

Value Line style
0 Solid
1 Dash
2 Dot
3 Dash-dot
4 Dash-dot-dot
5 Long dash
6 Short dash
7 Custom

fillPlain

The fill color under flat sections ("Plain fill color"). White by default.

{
  "fillPlain": { "r": 255, "g": 255, "b": 255, "a": 255 }
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Ignored: the opacity is set by fillTransparency.

fillUp

The fill color under climbs ("Uphill fill color"). Red by default.

{
  "fillUp": { "r": 255, "g": 0, "b": 0, "a": 255 }
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Ignored: the opacity is set by fillTransparency.

fillDown

The fill color under descents ("Downhill fill color"). Green by default.

{
  "fillDown": { "r": 0, "g": 255, "b": 0, "a": 255 }
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Ignored: the opacity is set by fillTransparency.

fillTransparency

The transparency of all three fills at once ("Fill transparency"). 30 by default.

{
  "fillTransparency": { "value": 30 }
}
Field Values What it does
value integer 0..255 0 makes the fill fully transparent, 255 makes it opaque.

Despite the name, a larger value makes the fill denser, not more transparent.

Clone this wiki locally