Skip to content

Quick Charts 4.1.0

Latest

Choose a tag to compare

@joeydangelo joeydangelo released this 09 Oct 23:58
· 64 commits to main since this release
9b376e5

Line tools painted as measured, with their words typed along them and their points marked on the axes, a menu of every drawing's own, the bar price sources, the bars pattern modes and the serial version exported from the drawings entry, color panels and the chart's words that keep their measure under a host page's global rules, and a dictionary of your own that may leave out the keys the catalog gains within the major. No public name changes.

The line tools paint as measured. A line rests as one stroke, and under the pointer its handles show thin, a ring of radius 6 or a square 12px across, 1px wide; a press on one moves that point and selects the line, whether or not it was selected. Two clicks place a line, its first point ringed and its second following the pointer between them. A selected line without words invites them where they would stand, a plus and its placeholder in its text color at half strength, turned with the line, and a click there or on its words types them in place; a double-click on a line opens its settings. A selected line marks its points' prices and times on the axes in the accent's pills, the times in the chart's own format, with a band at a quarter across their span: every drawing carries priceAxisPaneViews and timeAxisPaneViews, and a tool names what it marks. The horizontal and vertical lines stand a square handle nine tenths of the way across or down the pane, and a drag of it sets both coordinates of their point; the level lines stroke on the pixel grid and keep their own pills in their colors. An arrow's end is an open head; an info line stands its stats in a grey box of up to three rows, each led by a mark of its own, its length on the pane among them (showDistance); a trend angle marks a dotted level 50px long and an arc of radius 50, its angle to one place. A line saved at v: 2 keeps its ends, words and stats as they were (savedLook) until its settings change.

A double-click on a drawing's words opens its settings on their Text page: on a line's words or its invitation, on the selected arrow's body, and on the words of the text tools; anywhere else on the drawing it opens on its first page. chart.drawings.settings takes the page to open on ('Text', 'Style', 'Inputs', 'Coordinates' or 'Visibility'), opening on the first page where the drawing has none by that name. A line's Stats list offers its length on the pane (Distance, showDistance), between the date and time range and the angle.

A right-click on a drawing raises the drawing's own menu, and a right-click anywhere else the chart's: a table's edits first, then Template, Visual order and Visibility on timeframes as submenus, Clone and Copy, Lock, Hide and Remove, and Settings…. The rows an extension contributes stand in it as they stand in the chart's: its level rows under Clone and Copy and its view rows under Remove, and on a table ChartExtensionMenuContext.table names the table and whether a cell of it is being typed in.

@trdrs/quickcharts/drawings exports BAR_PRICE_SOURCES, BARS_PATTERN_MODES and SERIAL_VERSION, with the BarPriceSource and BarsPatternMode types: the sources a regression trend or an anchored VWAP reads, the modes a bars pattern paints in, and the version a drawing saves at, as the 4.0 upgrading guide names them.

A settings dialog's panels stand whole over its controls on every page of every tool, and every color panel (the dialog's popovers, the settings bar's panels, and the palettes the chart and indicator settings expand) holds its whole ten-column palette on a page whose unlayered rule sizes every element by its border box. The font, line height, weight and spacing a page sets on its body reach nothing the chart draws.

A dictionary of your own (ChartCustomLocale, ChartDictionary) carries every key of the major's first release, and a key the catalog gains within the major is optional in it: until your dictionary carries the key, the chart reads it in English and reports it to onMissing, and the next major makes it required. The catalog gains drawing.distance, drawing.drawingMenu and drawing.hintRemove in every built-in language (the Distance stat, the drawing menu's name and the shortcut its Remove row shows), each optional in a dictionary of your own.