LineBreakChart

LineBreakChart[{{date1,p1},{date2,p2},}]
makes a line break chart with prices at date .

LineBreakChart[{"name",daterange}]
makes a line break chart of closing prices for the financial entity over the date range daterange.

LineBreakChart[{},n]
makes a line break chart where n bars in a row cause a reversal.

Details and OptionsDetails and Options

  • LineBreakChart displays as a series of vertical bars where multiple prices may be included in a single bar, in which the price trend is accentuated.
  • LineBreakChart[{{,p1},{,p2},},n] considers previous prices for dates. If the previous prices have been increasing , then draw a new up bar if and a new down bar if ; otherwise, do not draw a new bar. This works similarly for decreasing prices. If there is no sequence of increasing or decreasing prices of length , the rule applies to the two previous prices.
  • LineBreakChart[] is equivalent to LineBreakChart[,3] for a three-line break chart.
  • The dates are considered an ordered sequence of events and are not shown on an absolute time scale.
  • The date formats for are the same as used in DateListPlot.
  • The and daterange are the same as used in FinancialData.
  • Data elements for LineBreakChart can be given in the following forms:
  • {datei,pi}a pure date and price pair
    {datei,Quantity[pi,ui]}a date price with a unit
    wi[{datei,pi},]a date price and wrapper
    formi->mia date price with metadata
  • A bar may represent several date-price pairs, and the corresponding wrappers will apply to the entire bar.
  • Data not given in these forms is taken to be missing and typically is excluded when generating the chart.
  • Data for LineBreakChart can be given in the following forms:
  • {e1,e2,},{"name",daterange}data without overall wrapper
    TimeSeries[],EventSeries[],TemporalData[]time series, event series, and temporal data
    w[{e1,e2,}],w[{"name",daterange}]data with overall wrapper
  • The following wrappers can be used for data elements:
  • Annotation[e,label]provide an annotation
    Button[e,action]define an action to execute when the element is clicked
    EventHandler[e,]define a general event handler for the element
    Hyperlink[e,uri]make the element act as a hyperlink
    Labeled[e,]display the element with labeling
    PopupWindow[e,cont]attach a popup window to the element
    StatusArea[e,label]display in the status area when the element is moused over
    Style[e,opts]show the element using the specified styles
    Tooltip[e,label]attach an arbitrary tooltip to the element
  • In LineBreakChart, Labeled and Placed allow the following positions:
  • Top,Bottom,Left,Right,Centerpositions within bar
    Above, Below, Before, Afterpositions outside bar
    {{bx,by},{lx,ly}}scaled position in the label at scaled position in the bar
  • LineBreakChart has the same options as Graphics with the following additions and changes:
  • AspectRatio1/GoldenRatiooverall ratio of width to height
    AxesTruewhether to draw axes
    ChartBaseStyleAutomaticoverall style for bars
    ChartElementFunctionAutomatichow to generate raw graphics for bars
    ChartElementsAutomaticgraphics to use in each of the bars
    DateFunctionAutomatichow to convert dates to standard form
    EventLabelsNoneevents to label
    GridLinesAutomaticgrid lines to draw
    GridLinesStyleAutomaticstyle for grid lines
    PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
    PlotTheme$PlotThemeoverall theme for the chart
    ScalingFunctionsNonehow to scale individual coordinates
    TargetUnitsAutomaticunits to display in the chart
    TrendStyleAutomatichow to style up and down trends
  • The arguments supplied to ChartElementFunction are the bar region , the date-price pairs list, and metadata .
  • A list of built-in settings for ChartElementFunction can be obtained from .
  • With the setting ChartElements->{up,down}, up and down will be used for up and down bars, respectively.
  • EventLabels->{,datei->lbli,} specifies a label associated with . The label will be displayed with the bar that has a date range that includes .
  • With ScalingFunctions->sy, the function is applied to the prices. ScalingFunctions only affects the display and none of the controls.
  • Style and other specifications from options and other constructs in LineBreakChart are effectively applied in the order TrendStyle, Style and other wrappers, and ChartElementFunction, with later specifications overriding earlier ones.
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)