Analytica 5.2 beta Release Notes/Changes in 5.2.4
This page lists fixes/changes in Analytica & ADE beta build 5.2.4 since the previous 5.2.3 beta build.
For what's new since 5.1, see What's new in Analytica 5.2?
OnGraphDraw
Build 5.2.4 exposes the OnGraphDraw attribute. It was present in Analytica 5.1 as an experimental and somewhat hidden feature, enhancements in this build make it much easier to use and hence, ready to be moved out of experimental status. These enhancements include:
- New function GraphToCanvasCoord, which makes it much easier to map a data value to a pixel coordinate for drawing.
- The OnGraphDrawFlags appear in the Object Window as checkboxes with the OnGraphDraw attribute. So you can configure these from the GUI without having to do it from Typescript.
- OnGraphDraw appears in the Attributes dialog, so you make the attribute show up by checking it there.
- Exposed several new items of information in the
infoandroleslocal variables, which you may want in some circumstances when drawing info. For example, these were added to theinfo(i.e., these are new items in theOnGraphDrawItemindex:- Result
- ChartType
- ViewMode
- SwapXY
- BarOverlap
- BarWidth, BarWidthPix, CategoryGap, CategoryGapPix (these are only available after data rendering and are for bar charts only)
Each role in the roles local variable has these new items in its GraphFillerInfo index
- Reversed (boolean -- is the axis reversed?)
- Labels (the categorical labels and their rendered order)
- Value (the actual data values for the main result along this axis)
- Note: Two items, "Log abs min" and "Rounding unit" are missing (a bug), to be fixed in next beta build.
- Can use
Selffrom OnGraphDraw. Note -- this is the Mid or Sample value, not the view data showing. For the view data, useroles[GraphFillerInfo='Value'].
Editing Expressions
When editing an expression attribute, such as a Definition, OnClick, OnChange, OnGraphDraw, Check, Domain expression, etc, we added two options to the right-mouse context menu -- remove quotes and add quotes. These are particularly useful when you paste data in from an external source and have quotes when you don't want them, or vise versa. They unescape or escape internal quotes, and both operate on the selected text.
Local declarations and repeated parameters
- Added the following iteration construct:
Local xi := repeated x;
- This construct uses the keyword
repeatedto iterate over each value passed into repeated parameter of a User-Defined Function. This is the preferred method for iterating over repeated parameters.
Enable comment auto-refresher