This sample uses Graduated Panels and Panel.alignmentFocusName to line up thermometer scales.

The thermometers are resizable, with two types. For the first two (default), resizing the thermometer reduces or increases the range of the values. For the second two (type: "scaling"), resizing the thermometer keeps the range, and scales the thermometer.


GoJS Features in this sample

Geometry Path Strings

The GoJS Geometry class controls the "shape" of a Shape, whereas the Shape.fill and Shape.stroke and other shape properties control the colors and appearance of the shape. For common shape figures, there are predefined geometries that can be used by setting Shape.figure. However one can also define custom geometries.

One can construct any Geometry by allocating and initializing a Geometry of at least one PathFigure holding some PathSegments. But you may find that using the string representation of a Geometry is easier to write and save in a database. Use the static method Geometry.parse or the Shape.geometryString property to transform a geometry path string into a Geometry object.

More information can be found in the GoJS Intro.

Related samples