Skip to content

Commit

Permalink
feature: add attached dom node count chart (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSiefke authored Dec 21, 2024
1 parent 438d92b commit 872558d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/charts/src/parts/Charts/Charts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * as AttachedDomNodeCount from '../CreateAttachedDomNodeCountChart/CreateAttachedDomNodeCountChart.js'
export * as CanvasCount from '../CreateCanvasCountChart/CreateCanvasCountChart.js'
export * as DetachedDomNodeCount from '../CreateDetachedDomNodeCountChart/CreateDetachedDomNodeCountChart.js'
export * as EmitterCount from '../CreateEmitterCountChart/CreateEmitterCountChart.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as CreateChart from '../CreateChart/CreateChart.js'
import * as GetAttachedDomNodeCountData from '../GetAttachedDomNodeCountData/GetAttachedDomNodeCountData.js'

export const name = 'attached-dom-node-count'

export const getData = GetAttachedDomNodeCountData.getAttachedDomNodeCountData

export const createChart = (data) => {
return CreateChart.createChart(data, {
x: 'index',
y: 'count',
xLabel: 'Index',
yLabel: 'Attached Dom Node Count',
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import * as GetCountData from '../GetCountData/GetCountData.js'

export const getAttachedDomNodeCountData = () => {
return GetCountData.getCountData('attached-dom-node-count', 'attachedDomNodeCount')
}

0 comments on commit 872558d

Please sign in to comment.