Skip to content

User JSON SpeedChartIndicator

roosit edited this page Oct 16, 2026 · 1 revision

Speed Chart JSON

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

Purpose

This page describes the JSON template of the speedChart indicator for manual editing of .vttp.

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}. Default values are given in the description of each setting.

Full Template

{
  "name": "com.velitask.plagin.official.speedChart",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "Distance": {},
      "geoZoom": {},
      "SpeedScale": {},
      "line": {
        "lineColor": { "r": 255, "g": 255, "b": 255, "a": 255 },
        "thickness": {},
        "style": { "value": 0 },
        "dashPattern": { "value": "" }
      },
      "fillColorLow": { "r": 0, "g": 200, "b": 0, "a": 60 },
      "fillColorHigh": { "r": 200, "g": 0, "b": 0, "a": 60 },
      "avgColor": { "r": 255, "g": 255, "b": 0, "a": 180 }
    }
  }
}

Settings

Distance

Selects the distance and speed sensor ("Distance"). Leave it empty in the template: the sensor is picked automatically when the indicator is added to a project.

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

geoZoom

Horizontal scale ("Map zoom"). The higher the value, the more detailed and shorter the shown section of the route. Default is 14.

{
  "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

SpeedScale

Vertical stretch of the chart ("Speed scale"). The name is written with a capital S. Default is 1.

{
  "SpeedScale": { "value": 1 }
}
Field Values What it does
value integer 1..20 1 — the maximum speed of the visible section takes up almost the whole height of the layer; larger values stretch the chart and cut off the peaks.

line

Chart line and 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 marker ("Line color").
thickness.value integer 0..50 Line thickness ("Thickness"); default is 1. At 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 fully transparent, 255 opaque.

style.value values:

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

fillColorLow

Fill color at low speed ("Fill (min)"). Green and semi-transparent by default.

{
  "fillColorLow": { "r": 0, "g": 200, "b": 0, "a": 60 }
}
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 fully transparent, 255 opaque.

fillColorHigh

Fill color at the maximum speed of the visible section ("Fill (max)"). Intermediate speeds are colored with a smooth transition between fillColorLow and fillColorHigh, including opacity. Red and semi-transparent by default.

{
  "fillColorHigh": { "r": 200, "g": 0, "b": 0, "a": 60 }
}
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 fully transparent, 255 opaque.

avgColor

Color of the dashed average speed line ("Average speed color"). Yellow by default.

{
  "avgColor": { "r": 255, "g": 255, "b": 0, "a": 180 }
}
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 fully transparent, 255 opaque.

Clone this wiki locally