Mixin: module:crm/Views/Charts/_ChartMixin

module:crm/Views/Charts/_ChartMixin

Base mixin for creating chart views.

Members

(static) pullRefreshBannerTemplate

Properties:
Type Description
external:Simplate
Mixes In:
Source:

(static) pullRefreshTemplate

Properties:
Type Description
Simplate
Mixes In:
Source:

(static) pullReleaseTemplate

Properties:
Type Description
Simplate
Mixes In:
Source:

loadingFont

Properties:
Name Type Description
The String

loading text font style

Source:

loadingText

Properties:
Name Type Description
Loading String

message

Source:

parent

Properties:
Name Type Description
parent Object

Reference to the metric widget that opened this view.

Source:

RENDER_DELAY

Properties:
Name Type Description
RENDER_DELAY Number

Number The re-render delay in milliseconds when the user changes device orientation.

Source:

widgetTemplate

Overrides View widgetTemplate

Source:

Methods

createStore()

Return a store that is consumed by requestData.

Since:
  • 3.3
Source:

getSearchExpressionHeight()

Deprecated:
  • 3.3 Charts in 3.3 no longer use the search expression node.
Source:

onLegendClick()

Handles click events for the legend node. Handles opening the tooltips on the chart when the item in the legend is clicked. The current legend format is as follows:

Since:
  • 3.3
Source:
Example
`<div class="legend" data-dojo-attach-point="legendNode">
       <ul class="doughnut-legend">
           <li data-segment="0"><span style="background-color: someColor"></span>
               Tooltip Label
           </li>
       </ul>
   </div>`

requestData()

Overrides _ListBase requestData to re-render the chart on pull to refresh.

Since:
  • 3.3
Source:

showLegend()

Render a legend from the chart into the legendNode attach point.

Since:
  • 3.3
Source: