Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/britecharts/britecharts
/ functions
Functions
773 in github.com/britecharts/britecharts
⨍
Functions
773
◇
Types & classes
0
↓ 1 callers
Function
getMaxYAxisScale
* Computes the maximal value for the Y-axis scale * * @return {Number} maxY value
src/charts/stacked-area.js:1048
↓ 1 callers
Function
getMinValue
* Computes the minimum value * * @return {Number} Min value
src/charts/stacked-area.js:994
↓ 1 callers
Function
getMinValueByDate
* Computes the minimal sum of values for any date * * @return {Number} Min value
src/charts/stacked-area.js:1003
↓ 1 callers
Function
getName
({name})
src/charts/grouped-bar.js:148
↓ 1 callers
Function
getNearestDataPoint
* Finds out the data entry that is closer to the given position on pixels * @param {Number} mouseX X position of the mouse * @retur
src/charts/line.js:1010
↓ 1 callers
Function
getNearestDataPoint
* Finds out the data entry that is closer to the given position on pixels * @param {Number} mouseX X position of the mouse * @retur
src/charts/stacked-area.js:1061
↓ 1 callers
Function
getPercentageAxis
* Gets the percentageAxis, sets it to `percentageAxisToMaxRatio` if all data points are 0 * @return {number} Calculated percentageAxis
src/charts/bar.js:838
↓ 1 callers
Function
getScopeReaderFunction
(scope, tokenName)
src/doc/template/static/scripts/sunlight.js:664
↓ 1 callers
Function
getSortedData
* Orders the data by date for consumption on the chart tooltip * @param {areaChartData} data Chart data * @return {Object[]}
src/charts/stacked-area.js:976
↓ 1 callers
Function
getStack
(data)
src/charts/stacked-bar.js:144
↓ 1 callers
Function
getTextRecursive
(a)
src/doc/template/static/scripts/docstrap.lib.js:9
↓ 1 callers
Function
getTooltipPosition
* Calculates the desired position for the tooltip * @param {Number} mouseX Current horizontal mouse position * @param
src/charts/tooltip.js:275
↓ 1 callers
Function
getTooltipPosition
* Calculates the desired position for the tooltip * @param {Number} mouseX Current horizontal mouse position * @param
src/charts/mini-tooltip.js:193
↓ 1 callers
Function
getValue
(data)
src/charts/stacked-bar.js:143
↓ 1 callers
Function
getValueText
* Extracts the value from the data object * @param {Object} data Data value containing the info * @return {String} Value to sh
src/charts/tooltip.js:302
↓ 1 callers
Function
getVerticalLegendChart
(dataset, optionalColorSchema)
demos/src/demo-donut.js:110
↓ 1 callers
Function
getYMax
* Gets the yMax, sets it to 1 if all data points are 0 * @return {number} Calculated yMax * @private
src/charts/grouped-bar.js:674
↓ 1 callers
Function
getYMax
* Gets the yMax, sets it to 1 if all data points are 0 * @return {number} Calculated yMax * @private
src/charts/stacked-bar.js:604
↓ 1 callers
Function
handleBarsMouseOut
* Handles a mouseout event out of a bar * @param {obj} e the fired event * @param {obj} d data of bar * @return {void}
src/charts/grouped-bar.js:702
↓ 1 callers
Function
handleBarsMouseOver
* Handles a mouseover event on top of a bar * @param {obj} e the fired event * @param {obj} d data of bar * @return {void
src/charts/grouped-bar.js:691
↓ 1 callers
Function
handleClick
* Click handler, passes the data point of the clicked bar * (or it's nearest point) * @private
src/charts/stacked-bar.js:714
↓ 1 callers
Function
handleClick
* Custom onClick event handler * @return {void} * @private
src/charts/scatter-plot.js:742
↓ 1 callers
Function
handleClickAnimation
* Applies animation on data point click * @param {Object} dataPoint * @return {void} * @private
src/charts/scatter-plot.js:757
↓ 1 callers
Function
handleCustomClick
* Click handler, shows data that was clicked and passes to the user * @private
src/charts/grouped-bar.js:739
↓ 1 callers
Function
handleHighlightClick
* Mouseclick handler over one of the highlight points * It will only pass the information with the event * @private
src/charts/line.js:1078
↓ 1 callers
Function
handleHighlightClick
* Mouseclick handler over one of the highlight points * It will only pass the information with the event * @private
src/charts/stacked-area.js:1141
↓ 1 callers
Function
handleMouseMove
* MouseMove handler, calculates the nearest dataPoint to the cursor * and updates metadata related to it * @private
src/charts/line.js:1032
↓ 1 callers
Function
handleMouseMove
* Custom OnMouseMove event handler * @return {void} * @private
src/charts/step.js:368
↓ 1 callers
Function
handleMouseMove
* MouseMove handler, calculates the nearest dataPoint to the cursor * and updates metadata related to it * @param {obj} e the fired
src/charts/grouped-bar.js:713
↓ 1 callers
Function
handleMouseMove
* MouseMove handler, calculates the nearest dataPoint to the cursor * and updates metadata related to it * @private
src/charts/stacked-bar.js:686
↓ 1 callers
Function
handleMouseMove
* MouseMove handler, calculates the nearest dataPoint to the cursor * and updates metadata related to it * @private
src/charts/stacked-area.js:1085
↓ 1 callers
Function
handleMouseMove
* Handler called on mousemove event * @return {void} * @private
src/charts/scatter-plot.js:701
↓ 1 callers
Function
handleMouseOut
* MouseOut handler, hides overlay and removes active class on verticalMarkerLine * It also resets the container of the vertical marker
src/charts/line.js:1054
↓ 1 callers
Function
handleMouseOut
* Custom OnMouseOver event handler * @return {void} * @private
src/charts/step.js:377
↓ 1 callers
Function
handleMouseOut
* MouseOut handler, hides overlay and removes active class on verticalMarkerLine * It also resets the container of the vertical marker
src/charts/grouped-bar.js:751
↓ 1 callers
Function
handleMouseOut
* MouseOut handler, hides overlay and removes active class on verticalMarkerLine * It also resets the container of the vertical marker
src/charts/stacked-bar.js:726
↓ 1 callers
Function
handleMouseOut
* MouseOut handler, hides overlay and removes active class on verticalMarkerLine * It also resets the container of the vertical marker
src/charts/stacked-area.js:1108
↓ 1 callers
Function
handleMouseOut
* Handler called on mouseout event * @return {void} * @private
src/charts/scatter-plot.js:728
↓ 1 callers
Function
handleMouseOver
* Mouseover handler, shows overlay and adds active class to verticalMarkerLine * @private
src/charts/line.js:1066
↓ 1 callers
Function
handleMouseOver
* Custom OnMouseOver event handler * @return {void} * @private
src/charts/step.js:359
↓ 1 callers
Function
handleMouseOver
* Mouseover handler, shows overlay and adds active class to verticalMarkerLine * @private
src/charts/grouped-bar.js:760
↓ 1 callers
Function
handleMouseOver
* Mouseover handler, shows overlay and adds active class to verticalMarkerLine * @private
src/charts/stacked-bar.js:735
↓ 1 callers
Function
handleMouseOver
* Mouseover handler, shows overlay and adds active class to verticalMarkerLine * @private
src/charts/stacked-area.js:1120
↓ 1 callers
Function
handleMouseOver
* Handler called on mouseover event * @return {void} * @private
src/charts/scatter-plot.js:719
↓ 1 callers
Function
handleTouchMove
* Touchmove highlighted points * It will only pass the information with the event * @private
src/charts/line.js:1087
↓ 1 callers
Function
handleTouchMove
* Touchmove highlighted points * It will only pass the information with the event * @private
src/charts/stacked-area.js:1132
↓ 1 callers
Function
hasEnoughHorizontalRoom
* Checks if the mouse is over the bounds of the parent chart * @param {Number} chartWidth Parent's chart * @param {Number} posit
src/charts/mini-tooltip.js:217
↓ 1 callers
Function
hasEnoughVerticalRoom
* Checks if the mouse is over the bounds of the parent chart * @param {Number} chartWidth Parent's chart * @param {Number} posit
src/charts/mini-tooltip.js:227
↓ 1 callers
Function
hashToLink
(doclet, hash)
src/doc/template/publish.js:171
↓ 1 callers
Function
hideTooltip
* Hides the tooltip * @return {void}
src/charts/mini-tooltip.js:235
↓ 1 callers
Function
highlightDataPoint
* Applies glow to hovered data point * @return {void} * @private
src/charts/scatter-plot.js:771
↓ 1 callers
Function
highlightDataPoints
* Creates coloured circles marking where the exact data y value is for a given data point * @param {Object} dataPoint Data point to extract
src/charts/line.js:1096
↓ 1 callers
Function
highlightDataPoints
* Creates coloured circles marking where the exact data y value is for a given data point * @param {obj} dataPoint Data point to extract inf
src/charts/stacked-area.js:1150
↓ 1 callers
Function
highlightOnScroll
(e)
src/doc/template/static/scripts/toc.js:112
↓ 1 callers
Function
initHighlightComponents
* Places the highlighter point to the DOM * to be used once one of the data points is * highlighted * @return {void}
src/charts/scatter-plot.js:802
↓ 1 callers
Function
initHighlightSlice
* Find the slice by id and growth it if needed * @private
src/charts/donut.js:486
↓ 1 callers
Function
initTooltip
* Creates the text element that will hold the legend of the chart
src/charts/donut.js:499
↓ 1 callers
Function
isIdentMatch
(context)
src/doc/template/static/scripts/sunlight.js:520
↓ 1 callers
Function
isValidLocaleDefinition
* Checks if a locale definition object contains the required keys * @param {LocaleObject} locale Locale to check * @return {Boolean}
src/charts/helpers/locale.js:26
↓ 1 callers
Function
jn
(e,t)
src/doc/template/static/scripts/prettify/jquery.min.js:6
↓ 1 callers
Function
kt
(e,t,n,i)
src/doc/template/static/scripts/prettify/jquery.min.js:4
↓ 1 callers
Function
loadDependencies
* Reads all of the dependencies [charts etc] from the constants file and safe loads them * onto the window object.
sandbox/sandbox.js:360
↓ 1 callers
Function
main
* Main function to run the sandbox
sandbox/sandbox.js:78
↓ 1 callers
Function
moveLayersByBaseline
* Takes the layers and moves them by the yAxisBaseline * Returns the original layers if yAxisBaseline equals zero, because nothing to do then
src/charts/stacked-area.js:462
↓ 1 callers
Function
moveTooltipOriginXY
* Helper method to update the x position of the vertical marker * @param {obj} dataPoint Data entry to extract info * @return void
src/charts/grouped-bar.js:785
↓ 1 callers
Function
moveTooltipOriginXY
* Helper method to update the x position of the vertical marker * @param {obj} dataPoint Data entry to extract info * @return void
src/charts/stacked-bar.js:760
↓ 1 callers
Function
moveVerticalMarker
* Helper method to update the x position of the vertical marker * @param {Object} dataPoint Data entry to extract info * @return vo
src/charts/line.js:1209
↓ 1 callers
Function
moveVerticalMarker
* Helper method to update the x position of the vertical marker * @param {obj} dataPoint Data entry to extract info * @return void
src/charts/stacked-area.js:1191
↓ 1 callers
Function
needsSignature
(doclet)
src/doc/template/publish.js:182
↓ 1 callers
Function
parseCustomRules
(context)
src/doc/template/static/scripts/sunlight.js:628
↓ 1 callers
Function
parseCustomTokens
(context)
src/doc/template/static/scripts/sunlight.js:529
↓ 1 callers
Function
parseIdent
(context)
src/doc/template/static/scripts/sunlight.js:559
↓ 1 callers
Function
parseKeyword
(context)
src/doc/template/static/scripts/sunlight.js:525
↓ 1 callers
Function
parseNumber
(context)
src/doc/template/static/scripts/sunlight.js:624
↓ 1 callers
Function
parseOperator
(context)
src/doc/template/static/scripts/sunlight.js:546
↓ 1 callers
Function
parsePunctuation
(context)
src/doc/template/static/scripts/sunlight.js:550
↓ 1 callers
Function
parseScopes
(context)
src/doc/template/static/scripts/sunlight.js:592
↓ 1 callers
Function
prepareData
* Prepare data for create chart. * @private
src/charts/grouped-bar.js:794
↓ 1 callers
Function
prepareData
* Prepare data for create chart. * @private
src/charts/stacked-bar.js:769
↓ 1 callers
Function
pt
(e)
src/doc/template/static/scripts/prettify/jquery.min.js:4
↓ 1 callers
Function
removeFilter
* Resets a point filter * @param {DOMElement} point Point to reset
src/charts/line.js:1217
↓ 1 callers
Function
removeFilter
* Resets a point filter * @param {DOMElement} point Point to reset
src/charts/stacked-area.js:1199
↓ 1 callers
Function
resetSizeAndPositionPointers
* Resets the height of the tooltip and the pointer for the text * position
src/charts/tooltip.js:319
↓ 1 callers
Function
saveChildren
(node)
src/doc/template/publish.js:1113
↓ 1 callers
Function
scrollTo
(e)
src/doc/template/static/scripts/toc.js:75
↓ 1 callers
Function
setBrushByDates
* Sets a new brush extent within the passed dates * @param {String | Date} dateA Initial Date * @param {String | Date} dateB End Dat
src/charts/brush.js:413
↓ 1 callers
Function
setChartSelectorType
* Gets the current chart type from the store and sets the chart selector value to reflect
sandbox/sandbox.js:136
↓ 1 callers
Function
setEpsilon
* Epsilon is the value given to the number representing half of the distance in * pixels between two date data points * @return {Num
src/charts/stacked-area.js:1074
↓ 1 callers
Function
setHandlers
* Sets handlers on all of our input fields on the sandbox dom
sandbox/sandbox.js:101
↓ 1 callers
Function
setInitialData
()
sandbox/sandbox.js:91
↓ 1 callers
Function
setNewDataTypes
* Reads from the constants file to fill the data type selelctor with the data types of that chart
sandbox/sandbox.js:178
↓ 1 callers
Function
shortenPaths
(files, commonPrefix)
src/doc/template/publish.js:248
↓ 1 callers
Function
shouldShowTooltip
* Determines if we should add the tooltip related logic depending on the * size of the chart and the tooltipThreshold variable value
src/charts/line.js:1227
↓ 1 callers
Function
shouldShowTooltip
* Determines if we should add the tooltip related logic depending on the * size of the chart and the tooltipThreshold variable value
src/charts/grouped-bar.js:825
↓ 1 callers
Function
shouldShowTooltip
* Determines if we should add the tooltip related logic depending on the * size of the chart and the tooltipThreshold variable value
src/charts/stacked-bar.js:805
↓ 1 callers
Function
shouldShowTooltip
* Determines if we should add the tooltip related logic depending on the * size of the chart and the tooltipThreshold variable value
src/charts/stacked-area.js:1210
↓ 1 callers
Function
showTooltip
* Shows the tooltip updating it's content * @param {Object} dataPoint Data point from the chart * @return {void}
src/charts/mini-tooltip.js:244
↓ 1 callers
Function
sortData
* Sorts data if orderingFunction is specified * @param {BarChartData} clean unordered data * @return {BarChartData} clean o
src/charts/bar.js:396
↓ 1 callers
Function
splitInLines
* Simple method to move the last item of an overflowing legend into the next line * @return {void} * @private
src/charts/legend.js:420
↓ 1 callers
Function
sumValues
(data)
src/charts/donut.js:131
← previous
next →
501–600 of 773, ranked by callers