MCPcopy Index your code
hub / github.com/plotly/plotly.js / createCategoryModel

Function createCategoryModel

src/traces/parcats/calc.js:285–296  ·  view source on GitHub ↗

* Create and return a new CategoryModel object * @param {Number} dimensionInd * @param {Number} categoryInd * The display index of this category (where 0 is the topmost category) * @param {String} categoryValue * @param {String} categoryLabel * @return {CategoryModel}

(dimensionInd, categoryInd, categoryValue, categoryLabel)

Source from the content-addressed store, hash-verified

283 * @return {CategoryModel}
284 */
285function createCategoryModel(dimensionInd, categoryInd, categoryValue, categoryLabel) {
286 return {
287 dimensionInd: dimensionInd,
288 categoryInd: categoryInd,
289 categoryValue: categoryValue,
290 displayInd: categoryInd,
291 categoryLabel: categoryLabel,
292 valueInds: [],
293 count: 0,
294 dragY: null
295 };
296}
297
298/**
299 * Update a CategoryModel object with a new value index

Callers 1

calc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…