Skip to content

Instantly share code, notes, and snippets.

@induprasad
induprasad / LCMP_StrikeChart.cmp
Created May 3, 2018 13:28
Component which uses strike resources to draw the chart
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes" access="global" >
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<ltng:require scripts="/resource/StrikeCmpResource" afterScriptsLoaded="{!c.onInit}"/>
<aura:attribute name="scriptsLoaded" type="Boolean" default="{!false}"/>
<aura:attribute name="chartRendered" type="Boolean" default="{!false}" description="Flag to display the loading spinner."/>
<aura:attribute name="triggerRedraw" type="Boolean" access="private" default="{!false}" description="Flag that triggers redraw of the chart."/>
<aura:attribute name="displayAxis" type="Boolean" access="private" default="{!false}" description="Flag that triggers displaying the left and bottom axis labels."/>
@induprasad
induprasad / LCMP_DisplayChart.cmp
Created May 3, 2018 13:30
The LCMP_DisplayChart component used to send the values to be displayed to the strike component
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes" access="global" controller="LCC_CaseResults">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<aura:attribute name="barData" type="Object[]" />
<aura:attribute name="accountName" type="String" default="" />
<aura:attribute name="divLength" type="String" default="4" />
<aura:attribute name="opencases" type="String" default="Open Cases" />
<aura:attribute name="closedcases" type="String" default="Closed Cases" />
<aura:attribute name="totalcases" type="String" default="Total Cases" />
@induprasad
induprasad / LAPP_DisplayChart.app
Created May 3, 2018 13:41
Application to Display the Chart component
<aura:application extends="force:slds">
<c:LCMP_DisplayChart />
</aura:application>