├── .github └── CODEOWNERS ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE.txt ├── README.md ├── assembly ├── generate-js-files.js ├── pom.xml └── src │ └── assembly │ └── assembly.xml ├── ccc-js ├── pom.xml └── src │ ├── main │ └── javascript │ │ ├── build-res │ │ ├── partials │ │ │ ├── cdo │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ │ ├── def │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ │ ├── jquery.tipsy │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ │ ├── license.js │ │ │ ├── protovis-compat │ │ │ │ ├── amd.begin.js │ │ │ │ └── amd.end.js │ │ │ ├── protovis-msie │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ │ ├── protovis │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ │ ├── pvc │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ │ └── tipsy │ │ │ │ ├── amd.begin.js │ │ │ │ ├── amd.end.js │ │ │ │ ├── ccc.begin.js │ │ │ │ ├── ccc.end.js │ │ │ │ ├── pen-legacy.begin.js │ │ │ │ ├── pen-legacy.end.js │ │ │ │ ├── pen.begin.js │ │ │ │ └── pen.end.js │ │ └── r.js-configs │ │ │ ├── cdo.build.js │ │ │ ├── def.build.js │ │ │ ├── jquery.tipsy.build.js │ │ │ ├── protovis-compat.build.js │ │ │ ├── protovis-msie.build.js │ │ │ ├── protovis.build.js │ │ │ ├── pvc.build.js │ │ │ ├── tipsy.build.js │ │ │ └── tipsy.css.build.js │ │ └── package-res │ │ ├── ccc │ │ ├── _namespace.pvc.js │ │ ├── core │ │ │ ├── base │ │ │ │ ├── abstract-interactive.js │ │ │ │ ├── abstract-options.js │ │ │ │ ├── abstract.js │ │ │ │ ├── axis │ │ │ │ │ ├── axis.js │ │ │ │ │ ├── color-axis.js │ │ │ │ │ ├── normalized-axis.js │ │ │ │ │ └── size-axis.js │ │ │ │ ├── chart │ │ │ │ │ ├── chart.activeScene.js │ │ │ │ │ ├── chart.axes.js │ │ │ │ │ ├── chart.data.js │ │ │ │ │ ├── chart.extension.js │ │ │ │ │ ├── chart.js │ │ │ │ │ ├── chart.panels.js │ │ │ │ │ ├── chart.plots.js │ │ │ │ │ ├── chart.selection.js │ │ │ │ │ └── chart.visualRoles.js │ │ │ │ ├── color.js │ │ │ │ ├── colorScheme.js │ │ │ │ ├── context.js │ │ │ │ ├── dataCell │ │ │ │ │ ├── color-dataCell.js │ │ │ │ │ └── dataCell.js │ │ │ │ ├── extension.js │ │ │ │ ├── mark.js │ │ │ │ ├── multi │ │ │ │ │ ├── multiChart-options.js │ │ │ │ │ ├── multiChart-panel.js │ │ │ │ │ └── smallChart-options.js │ │ │ │ ├── optionsMgr.js │ │ │ │ ├── panel │ │ │ │ │ ├── content-panel.js │ │ │ │ │ ├── dockingGrid-panel.js │ │ │ │ │ ├── legend │ │ │ │ │ │ ├── legend-options.js │ │ │ │ │ │ ├── legend-panel.js │ │ │ │ │ │ ├── legendSymbolRenderer.js │ │ │ │ │ │ └── scene │ │ │ │ │ │ │ ├── legend-group-scene.js │ │ │ │ │ │ │ ├── legend-item-scene.js │ │ │ │ │ │ │ ├── legend-item-scene.selection.js │ │ │ │ │ │ │ ├── legend-item-scene.visibility.js │ │ │ │ │ │ │ ├── legend-item-sceneSection.js │ │ │ │ │ │ │ └── legend-root-scene.js │ │ │ │ │ ├── panel │ │ │ │ │ │ └── panel.js │ │ │ │ │ └── title │ │ │ │ │ │ ├── abstract-title-panel.js │ │ │ │ │ │ └── title-panel.js │ │ │ │ ├── plot │ │ │ │ │ ├── plot-panel.js │ │ │ │ │ ├── plot.js │ │ │ │ │ └── plotBg-panel.js │ │ │ │ ├── prologue.js │ │ │ │ ├── scene │ │ │ │ │ ├── scene.js │ │ │ │ │ └── var.js │ │ │ │ ├── shims.js │ │ │ │ ├── sign │ │ │ │ │ ├── area-sign.js │ │ │ │ │ ├── bar-sign.js │ │ │ │ │ ├── base-sign.js │ │ │ │ │ ├── dot-sign.js │ │ │ │ │ ├── dotSizeColor-sign.js │ │ │ │ │ ├── label-sign.js │ │ │ │ │ ├── line-sign.js │ │ │ │ │ ├── panel-sign.js │ │ │ │ │ ├── rule-sign.js │ │ │ │ │ ├── sign.js │ │ │ │ │ └── value-label-sign.js │ │ │ │ ├── slidingWindow.js │ │ │ │ ├── spec.js │ │ │ │ ├── text.js │ │ │ │ ├── time.js │ │ │ │ ├── trends.js │ │ │ │ ├── value │ │ │ │ │ ├── enums.js │ │ │ │ │ ├── offset.js │ │ │ │ │ ├── percentValue.js │ │ │ │ │ ├── sides.js │ │ │ │ │ └── size.js │ │ │ │ └── visualRole │ │ │ │ │ ├── visualRole.js │ │ │ │ │ ├── visualRoleVarHelper.js │ │ │ │ │ └── visualRolesBinder.js │ │ │ ├── cartesian │ │ │ │ ├── axis │ │ │ │ │ ├── abstract-cart-axis-panel.js │ │ │ │ │ ├── cart-axis-title-panel.js │ │ │ │ │ ├── cart-axis.js │ │ │ │ │ ├── discrete-bands-layout.js │ │ │ │ │ ├── root-cart-axis-scene.js │ │ │ │ │ └── tick-cart-axis-scene.js │ │ │ │ ├── cart-chart.js │ │ │ │ ├── cart-dockingGrid-panel.js │ │ │ │ ├── cart-focusWindow.js │ │ │ │ ├── cart-plot-panel.js │ │ │ │ ├── cart-plot.js │ │ │ │ └── ortho-cart-dataCell.js │ │ │ └── categorical │ │ │ │ ├── categ-chart.js │ │ │ │ ├── categ-plot-panel.js │ │ │ │ └── categ-plot.js │ │ └── plugin │ │ │ ├── abstract-bar │ │ │ ├── abstract-bar-chart.js │ │ │ ├── abstract-bar-plot-panel.js │ │ │ └── abstract-bar-plot.js │ │ │ ├── abstract-metricxy │ │ │ ├── abstract-metricxy-chart.js │ │ │ └── abstract-metricxy-plot.js │ │ │ ├── bar │ │ │ ├── bar-chart.js │ │ │ ├── bar-plot-panel.js │ │ │ └── bar-plot.js │ │ │ ├── box │ │ │ ├── box-chart.js │ │ │ ├── box-plot-panel.js │ │ │ └── box-plot.js │ │ │ ├── bullet │ │ │ ├── bullet-chart.js │ │ │ └── bullet-plot.js │ │ │ ├── dataTree │ │ │ └── dt-chart.js │ │ │ ├── heatGrid │ │ │ ├── hg-chart.js │ │ │ ├── hg-plot-panel.js │ │ │ └── hg-plot.js │ │ │ ├── nbar │ │ │ └── nbar-chart.js │ │ │ ├── parallel │ │ │ └── par-chart.js │ │ │ ├── pie │ │ │ ├── pie-chart.js │ │ │ ├── pie-plot-panel.js │ │ │ ├── pie-plot.js │ │ │ └── pie-slice-sign.js │ │ │ ├── point │ │ │ ├── point-chart.js │ │ │ ├── point-plot-panel.js │ │ │ └── point-plot.js │ │ │ ├── scatter │ │ │ ├── scatter-chart.js │ │ │ ├── scatter-plot-panel.js │ │ │ ├── scatter-plot.js │ │ │ └── scatter-size-axis.js │ │ │ ├── sunburst │ │ │ ├── sun-chart.js │ │ │ ├── sun-color-axis.js │ │ │ ├── sun-plot-panel.js │ │ │ ├── sun-plot.js │ │ │ └── sun-slice-sign.js │ │ │ ├── treemap │ │ │ ├── treemap-chart.js │ │ │ ├── treemap-color-axis.js │ │ │ ├── treemap-plot-panel.js │ │ │ └── treemap-plot.js │ │ │ └── water │ │ │ ├── water-chart.js │ │ │ ├── water-legend-group-scene.js │ │ │ ├── water-legend-item-scene.js │ │ │ ├── water-plot-panel.js │ │ │ └── water-plot.js │ │ ├── cdo.js │ │ ├── cdo │ │ ├── _data.js │ │ ├── atom.js │ │ ├── complex.js │ │ ├── complexView.js │ │ ├── data │ │ │ ├── data-filtered.js │ │ │ ├── data-grouped.js │ │ │ ├── data.compat.js │ │ │ ├── data.js │ │ │ ├── data.operations.js │ │ │ └── data.selected.js │ │ ├── datum.js │ │ ├── dimension.js │ │ ├── format │ │ │ ├── custom-format.js │ │ │ ├── date-format.js │ │ │ ├── format-language.js │ │ │ ├── formatProvider.js │ │ │ ├── number-format.js │ │ │ └── number-formatStyle.js │ │ ├── meta │ │ │ ├── complexType.js │ │ │ ├── complexTypeProject.js │ │ │ └── dimensionType.js │ │ ├── oper │ │ │ ├── abstract-oper.js │ │ │ ├── grouping-oper.js │ │ │ ├── groupingSpec.js │ │ │ ├── linear-interp-oper.js │ │ │ ├── linear-interp-seriesState.js │ │ │ ├── zero-interp-oper.js │ │ │ └── zero-interp-seriesState.js │ │ └── translation │ │ │ ├── abstract-matrix-transl.js │ │ │ ├── abstract-transl.js │ │ │ ├── crosstab-transl.js │ │ │ └── relational-transl.js │ │ ├── def.js │ │ ├── def │ │ ├── EventSource.js │ │ ├── array.js │ │ ├── attached.js │ │ ├── bit.js │ │ ├── collection │ │ │ ├── Map.js │ │ │ ├── OrderedMap.js │ │ │ └── Set.js │ │ ├── configure.js │ │ ├── conversion.js │ │ ├── create.js │ │ ├── css.js │ │ ├── describe.js │ │ ├── epilogue.js │ │ ├── error.js │ │ ├── fun.js │ │ ├── html.js │ │ ├── id.js │ │ ├── info.js │ │ ├── log.js │ │ ├── math.js │ │ ├── mixin.js │ │ ├── namespace.js │ │ ├── number.js │ │ ├── object.js │ │ ├── predicate.js │ │ ├── private.js │ │ ├── prologue.js │ │ ├── qualifiedName.js │ │ ├── query.js │ │ ├── shim.js │ │ ├── string.js │ │ ├── textTable.js │ │ ├── type │ │ │ ├── MetaType.js │ │ │ ├── Object.js │ │ │ ├── classify.js │ │ │ ├── enum.js │ │ │ ├── fields.js │ │ │ ├── inherit.js │ │ │ ├── methods.js │ │ │ ├── overrides.js │ │ │ └── type.js │ │ └── varia.js │ │ ├── lib │ │ ├── d3.js │ │ ├── jquery.tipsy.js │ │ ├── protovis-compat.js │ │ ├── protovis-msie.js │ │ ├── protovis.js │ │ ├── tipsy.css │ │ └── tipsy.js │ │ └── pvc.js │ └── test │ ├── config │ └── javascript │ │ ├── karma.ci.conf.js │ │ └── karma.conf.js │ └── javascript │ ├── ccc │ └── core │ │ ├── base │ │ ├── axis │ │ │ ├── color-axis-spec.js │ │ │ └── size-axis-spec.js │ │ ├── chart │ │ │ ├── chart-spec.js │ │ │ └── chart.visualRoles-spec.js │ │ ├── options │ │ │ ├── axisLabel-spec.js │ │ │ ├── dataWhere-spec.js │ │ │ ├── format-spec.js │ │ │ └── plots-spec.js │ │ ├── panel │ │ │ ├── dockingGrid-panel-spec.js │ │ │ └── legend │ │ │ │ └── legend-panel-spec.js │ │ ├── plot │ │ │ └── plot-panel-spec.js │ │ ├── slidingWindow-spec.js │ │ └── visualRole │ │ │ └── visualRolesBinder-spec.js │ │ └── cartesian │ │ ├── axis │ │ ├── abstract-cart-axis-panel-spec.js │ │ ├── cart-axis-spec.js │ │ └── discrete-bands-layout-spec.js │ │ └── cart-dockingGrid-panel-spec.js │ ├── cdo │ ├── atom-spec.js │ ├── data-grouping-spec.js │ ├── data-interp-linear-spec.js │ ├── data-interp-zero-spec.js │ ├── data-loading-spec.js │ ├── data-spec.js │ ├── datum-spec.js │ ├── dimension-spec.js │ ├── format │ │ ├── custom-format-spec.js │ │ ├── date-format-spec.js │ │ ├── format-language-spec.js │ │ ├── formatProvider-spec.js │ │ └── number-format-spec.js │ └── meta │ │ ├── complex-type-project-spec.js │ │ ├── complex-type-spec.js │ │ └── dimension-type-spec.js │ ├── data-1.js │ ├── def │ ├── EventSource-spec.js │ └── round10-spec.js │ ├── main.ci.js │ ├── main.js │ └── utils.js ├── doc ├── gen │ ├── com-lib.xsl │ ├── com2jsdoc.xsl │ ├── jsdoc_changes │ │ ├── app │ │ │ └── frame │ │ │ │ └── Link.js │ │ ├── lib │ │ │ └── JSDOC │ │ │ │ └── Symbol.js │ │ └── templates │ │ │ └── jsdoc │ │ │ ├── allclasses.tmpl │ │ │ ├── class.tmpl │ │ │ ├── publish.js │ │ │ └── static │ │ │ └── default.css │ └── summary │ │ └── com2html-summary.xsl ├── kettle │ ├── componentProtovisChart.xml │ ├── configCustomChartDescription.csv │ ├── configCustomPropertyAdvanced.csv │ ├── configCustomPropertyDescription.csv │ ├── configPropertyDefaultOverride.csv │ ├── configPropertyNameRewrite.csv │ ├── expandProperties.ktr │ ├── expandPropertiesOneLevel.ktr │ ├── exportModelCDE.kjb │ ├── exportModelCDE.ktr │ ├── finishModel.ktr │ ├── inheritModelTypes.ktr │ ├── inheritProperties.ktr │ ├── main.kjb │ ├── readModel.kjb │ ├── readModel.ktr │ └── readModelTypes.ktr ├── lib │ └── jsdoc_toolkit-2.4.0.zip ├── model │ ├── axes │ │ ├── _axes.xml │ │ ├── axis-cartesian-continuous.xml │ │ ├── axis-cartesian-discrete.xml │ │ ├── axis-cartesian-numeric.xml │ │ ├── axis-cartesian.xml │ │ ├── axis-color.xml │ │ └── axis-size.xml │ ├── charts │ │ ├── _charts.xml │ │ ├── area-stacked.xml │ │ ├── area.xml │ │ ├── bar-common.xml │ │ ├── bar-normalized.xml │ │ ├── bar.xml │ │ ├── basic.xml │ │ ├── box.xml │ │ ├── bullet.xml │ │ ├── cartesian.xml │ │ ├── categorical-numeric.xml │ │ ├── categorical.xml │ │ ├── common.xml │ │ ├── dot-metric.xml │ │ ├── dot-stacked.xml │ │ ├── dot.xml │ │ ├── heat-grid.xml │ │ ├── line-metric.xml │ │ ├── line-stacked.xml │ │ ├── line.xml │ │ ├── pie.xml │ │ ├── point-metric.xml │ │ ├── point.xml │ │ ├── sunburst.xml │ │ ├── treemap.xml │ │ └── waterfall.xml │ ├── data │ │ ├── _data.xml │ │ ├── dimensionType.xml │ │ ├── dimensionsCalculation.xml │ │ ├── dimensionsReader.xml │ │ └── slidingWindow.xml │ ├── facets │ │ ├── _facets.xml │ │ ├── chartMulti.xml │ │ ├── chartPlot2.xml │ │ ├── chartTrend.xml │ │ ├── extMulti.xml │ │ ├── plotLinesAndDots.xml │ │ ├── plotMain.xml │ │ └── plotValuesOverflow.xml │ ├── format │ │ ├── _format.xml │ │ ├── customFormat.xml │ │ ├── dateFormat.xml │ │ ├── formatProvider.xml │ │ ├── numberFormat.xml │ │ └── numberFormatStyle.xml │ ├── marks │ │ ├── _marks.xml │ │ ├── area.xml │ │ ├── bar.xml │ │ ├── dot.xml │ │ ├── label.xml │ │ ├── line.xml │ │ ├── mark.xml │ │ ├── panel.xml │ │ ├── quantitativeScale.xml │ │ ├── rule.xml │ │ └── wedge.xml │ ├── panels │ │ ├── _panels.xml │ │ ├── common.xml │ │ ├── docked-common.xml │ │ ├── legend.xml │ │ └── title.xml │ ├── plots │ │ ├── _plots.xml │ │ └── plot-trending.xml │ ├── pvc.options.xml │ ├── pvc.static.js │ └── varia │ │ ├── _varia.xml │ │ ├── atoms │ │ ├── axisDomainAlign.xml │ │ ├── axisDomainRoundingMode.xml │ │ ├── axisDomainScope.xml │ │ ├── axisLabelRotationDirection.xml │ │ ├── axisOverlappedLabelsMode.xml │ │ ├── boxLayoutMode.xml │ │ ├── chartClearSelectionMode.xml │ │ ├── chartOrientation.xml │ │ ├── colorScaleType.xml │ │ ├── colorString.xml │ │ ├── contentOverflow.xml │ │ ├── dataTypeCheckingMode.xml │ │ ├── dimensionValueType.xml │ │ ├── dotShapeType.xml │ │ ├── legendClickMode.xml │ │ ├── legendOverflow.xml │ │ ├── lineAreaInterpolation.xml │ │ ├── markAnchor.xml │ │ ├── multiChartOverflow.xml │ │ ├── nullInterpolationMode.xml │ │ ├── panelAlignment.xml │ │ ├── panelPosition.xml │ │ ├── pieValuesLabelStyle.xml │ │ ├── pointingCollapse.xml │ │ ├── pointingMode.xml │ │ ├── rectangleSide.xml │ │ ├── sliceOrder.xml │ │ ├── stroke.xml │ │ ├── sunburstColorMode.xml │ │ ├── text.xml │ │ ├── timeIntervals.xml │ │ ├── tooltipAutoContent.xml │ │ ├── tooltipGravity.xml │ │ ├── treemapColorMode.xml │ │ ├── treemapLayoutMode.xml │ │ ├── valuesOverflow.xml │ │ ├── waterDirection.xml │ │ └── wedgeAnchor.xml │ │ ├── compatFlags.xml │ │ ├── functions │ │ ├── axisTickFormatter.xml │ │ ├── colorTransform.xml │ │ ├── dataWhere.xml │ │ ├── dimensionComparer.xml │ │ ├── dimensionConverter.xml │ │ ├── dimensionFormatter.xml │ │ ├── dimensionKey.xml │ │ ├── dimensionsCalculation.xml │ │ ├── dimensionsReader.xml │ │ ├── numberFormatter.xml │ │ ├── selectionChangedAction.xml │ │ ├── slidingWindowFuns.xml │ │ ├── standardAction.xml │ │ ├── tooltipFormatter.xml │ │ └── userSelectionAction.xml │ │ ├── pointing.xml │ │ ├── sides.xml │ │ ├── size.xml │ │ ├── tooltip.xml │ │ └── visualRole.xml └── schema │ └── com_2012.xsd ├── examples ├── SampleRT1.html ├── SampleRT2.html ├── SampleRT3.html ├── SampleRT4.html ├── SampleRT5.html ├── SampleRT6.html ├── SampleRT7.html ├── SampleRT8.html ├── SampleRT9.html ├── data │ ├── bp.js │ ├── campaigns.js │ ├── data.js │ ├── dt.js │ ├── flare.js │ ├── heat-grid-mega.js │ ├── q01-01.js │ └── steel-wheels.js ├── fiddles │ ├── bar │ │ └── targetLine │ │ │ ├── demo.details │ │ │ ├── demo.html │ │ │ └── demo.js │ ├── draw │ │ ├── horizRefLineAtHighestTick │ │ │ ├── demo.details │ │ │ ├── demo.html │ │ │ └── demo.js │ │ ├── horizRefLineAtMaxValue │ │ │ ├── demo.details │ │ │ ├── demo.html │ │ │ └── demo.js │ │ ├── vertiBandAlternate │ │ │ ├── demo.details │ │ │ ├── demo.html │ │ │ └── demo.js │ │ └── vertiBandFixed │ │ │ ├── demo.details │ │ │ ├── demo.html │ │ │ └── demo.js │ └── index.md ├── lib │ └── codemirror │ │ ├── codemirror.css │ │ ├── codemirror.js │ │ └── javascript.js ├── pvcChartsFamily.html ├── pvcDataTree.html ├── pvcDocUtils.css ├── pvcDocUtils.js ├── pvcParCoord.html ├── pvcTest.html ├── pvcTestBar.html ├── pvcTestBox.html ├── pvcTestBullet.html ├── pvcTestDot.html ├── pvcTestEvents.html ├── pvcTestHG.html ├── pvcTestHGMega.html ├── pvcTestLine.html ├── pvcTestLineFull_Interp_Gap.html ├── pvcTestLineFull_Interp_Linear.html ├── pvcTestLineFull_Interp_Zero.html ├── pvcTestMeasureDiscrim.html ├── pvcTestMetricDot.html ├── pvcTestMultiOutOfOrder.html ├── pvcTestNormalizedBar.html ├── pvcTestPie.html ├── pvcTestRealTime.html ├── pvcTestRealTimeBar.html ├── pvcTestRealTimeLine.html ├── pvcTestRealTimeLineSlidingWindow.html ├── pvcTestSmallMultipleCharts.html ├── pvcTestStackedArea.html ├── pvcTestStackedLine.html ├── pvcTestSunburst.html ├── pvcTestTreemap.html └── pvcTestWaterfall.html ├── package-lock.json ├── package.json ├── pom.xml ├── scripts ├── README.md ├── build-scripts-config.pl ├── build-scripts-config.sh ├── ccc-bundle-files.txt ├── cdo-bundle-files.txt ├── def-bundle-files.txt ├── generateJsDocs.sh ├── generateSite.sh ├── generateSummary.sh ├── repl-scripts.pl └── repl-scripts.sh └── site ├── README.md ├── _generate.pl ├── gen ├── genTemplates.xsl └── templates.xml ├── resources ├── cccBarExample1.js ├── cccBarExample10.js ├── cccBarExample11.js ├── cccBarExample12.js ├── cccBarExample13.js ├── cccBarExample14.js ├── cccBarExample15.js ├── cccBarExample2.js ├── cccBarExample3.js ├── cccBarExample4.js ├── cccBarExample5.js ├── cccBarExample6.js ├── cccBarExample7.js ├── cccBarExample8.js ├── cccBarExample9.js ├── cccBoxExample1.js ├── cccBoxExample2.js ├── cccBoxExample3.js ├── cccBoxExample4.js ├── cccBulletExample1.js ├── cccBulletExample2.js ├── cccBulletExample3.js ├── cccBulletExample4.js ├── cccBulletExample5.js ├── cccDotExample1.js ├── cccDotExample2.js ├── cccDotExample3.js ├── cccExampleFooter.html ├── cccExampleHeader.html ├── cccHGExample1.js ├── cccHGExample2.js ├── cccHGExample3.js ├── cccHGExample4.js ├── cccHGExample5.js ├── cccLineExample1.js ├── cccLineExample2.js ├── cccLineExample3.js ├── cccLineExample4.js ├── cccLineExample5.js ├── cccMetricDotExample1.js ├── cccMetricDotExample2.js ├── cccMetricDotExample3.js ├── cccMetricDotExample4.js ├── cccMetricDotExample5.js ├── cccPieExample1.js ├── cccPieExample2.js ├── cccPieExample3.js ├── cccPieExample4.js ├── cccPieExample5.js ├── cccPieExample6.js ├── cccPieExample7.js ├── cccStackedAreaExample1.js ├── cccStackedAreaExample2.js ├── cccStackedAreaExample3.js ├── cccStackedLineExample1.js ├── cccStackedLineExample2.js ├── cccStackedLineExample3.js ├── cccSunburstExample1.js ├── cccSunburstExample2.js ├── cccSunburstExample3.js ├── cccSunburstExample4.js ├── cccTreemapExample1.js ├── cccTreemapExample2.js ├── cccTreemapExample3.js ├── cccTreemapExample4.js ├── cccWaterfallExample1.js ├── cccWaterfallExample2.js └── cccWaterfallExample3.js └── root ├── ccc.css ├── charts └── lib │ ├── amd │ └── require.config.js │ ├── pvcExampleUtils.css │ ├── pvcExampleUtils.js │ └── pvcSummary.css ├── css ├── bootstrap-select.css ├── bootstrap-theme.css ├── bootstrap-theme.min.css ├── bootstrap.css ├── bootstrap.min.css ├── cbpScroller.css ├── dataurl.css ├── easy-responsive-tabs.css ├── main.css ├── master.css ├── owl.carousel.css └── owl.theme.css ├── favicon.ico ├── img ├── background-selector.png ├── background-selector.svg ├── copy-icon.png ├── copy-icon.svg ├── index.png ├── social-facebook.svg ├── social-gplus.svg ├── social-linkedin.svg ├── social-rss-feed.svg ├── social-twitter.svg └── social-youtube.svg ├── index.html ├── js ├── cbpScroller.js ├── ccc-specific.js ├── classie.js ├── copy.js ├── easyResponsiveTabs.js ├── jquery.dropdown.js ├── jquery.easytabs.js ├── jquery.hashchange.min.js ├── jquery.touchSwipe.js ├── main.js ├── master.js ├── pace.js ├── twitter-bootstrap-hover-dropdown.js └── vendor │ ├── bootstrap-hover-dropdown.min.js │ ├── bootstrap-select.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── classie.js │ ├── isotope.pkgd.min.js │ ├── jquery-1.12.4.min.js │ ├── modernizr-2.6.2-respond-1.1.0.min.js │ └── owl.carousel.js └── pentaho-templates └── footer.html /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @pentaho/sp-branch-write -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /doc/gen/components/ 2 | /doc/gen/summary/summary.html 3 | /doc/jsdoc/ 4 | /doc/model/pvc.options.xml.js 5 | /doc/presentation/ 6 | /doc/user-guide/ 7 | /site/gen/templates.out.xml 8 | /site/templates/ 9 | 10 | node_modules 11 | .project 12 | .classpath 13 | .settings 14 | build 15 | target 16 | release.properties 17 | pom.xml.releaseBackup 18 | *.iml 19 | .idea 20 | bin 21 | *.class 22 | *.jar 23 | *.war 24 | *.ear 25 | .DS_Store 26 | pentaho.log 27 | 28 | # These jquery files are added/replaced by maven on every build 29 | /ccc-js/src/main/javascript/package-res/lib/jquery.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Community Charting Components 2 | 3 | **CCC** is a charting library for web documents. 4 | It can generate charts in SVG or VML (for IE8 support). 5 | 6 | **CCC** is one of the _tools_ of the **CTools** family. 7 | 8 | If you want to know more, checkout the [CCC site](https://webdetails.github.io/ccc/). 9 | 10 | #### Pre-requisites for building the project: 11 | * Maven, version 3+ 12 | * Java JDK 1.8 13 | * This [settings.xml](https://raw.githubusercontent.com/pentaho/maven-parent-poms/master/maven-support-files/settings.xml) in your /.m2 directory 14 | 15 | #### Building it 16 | 17 | This is a maven project, and to build it use the following command 18 | ``` 19 | mvn clean install 20 | ``` 21 | The build result will be a Pentaho Plugin located in *assembly/target/ccc-***.zip*. Then, this package can be dropped 22 | inside your system folder. 23 | 24 | For issue tracking and bug report please use http://jira.pentaho.com/browse/CCC. Its master 25 | branch is built upon commit merges in Jenkins Continuous Integration located in 26 | http://ci.pentaho.com/job/ccc/ 27 | 28 | #### Building the example site: 29 | 30 | Refer to the [Contributing](CONTRIBUTING.md) document. 31 | 32 | #### Running the tests 33 | Install karma 34 | 35 | ``` 36 | $ npm install -g karma-cli 37 | ``` 38 | Then run 39 | ```nix 40 | $ karma start ccc-js/src/test/config/javascript/karma.conf.js 41 | ``` 42 | -------------------------------------------------------------------------------- /assembly/src/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | ccc 6 | 7 | zip 8 | 9 | false 10 | 11 | 12 | ${project.parent.build.directory}/module-scripts 13 | ccc 14 | 15 | 16 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(['./def', './protovis-compat!'], function(def, pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return cdo; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/ccc.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | var cdo = (function(def, pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/ccc.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return cdo; 14 | }(def, pv)); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/cdo", [ "cdf-legacy/lib/CCC/def", "cdf-legacy/lib/CCC/protovis" ], function(def, pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return cdo; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/cdo", ["cdf/lib/CCC/def", "cdf/lib/CCC/protovis"], function(def, pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/cdo/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return cdo; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(function() { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return def; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/ccc.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | var def = (function() { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/ccc.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return def; 14 | }()); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/def", [], function() { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return def; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/def", function() { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/def/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return def; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(['jquery', 'css!./tipsy'], function(jQuery) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return jQuery; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/ccc.begin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/ccc.begin.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/ccc.end.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/ccc.end.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/jquery.tipsy", [ "cdf-legacy/jquery" ], function(jQuery) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return jQuery; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/jquery.tipsy", ["cdf/jquery"], function(jQuery) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/jquery.tipsy/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return jQuery; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/license.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-compat/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(["require"], function(contextualRequire) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-compat/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return compat; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(['./protovis'], function(pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | return pv; 13 | }); 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/ccc.begin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/protovis-msie/ccc.begin.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/ccc.end.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/protovis-msie/ccc.end.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/protovis-msie", [ "cdf-legacy/lib/CCC/protovis" ], function(pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | return pv; 13 | }); 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/protovis-msie", ["cdf/lib/CCC/protovis"], function(pv) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis-msie/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | return pv; 13 | }); 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(function() { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pv; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/ccc.begin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/protovis/ccc.begin.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/ccc.end.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/protovis/ccc.end.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/protovis", [], function() { 13 | 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pv; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/protovis", function() { 13 | 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/protovis/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pv; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(['./def', './protovis-compat!', './cdo', 'jquery', './tipsy'], function(def, pv, cdo, $) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pvc; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/ccc.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | var pvc = (function(def, pv, cdo) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/ccc.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pvc; 14 | }(def, pv, cdo)); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/pvc-d1.0", [ "cdf-legacy/lib/CCC/def", "cdf-legacy/lib/CCC/protovis", "cdf-legacy/lib/CCC/cdo", "cdf-legacy/jquery", "cdf-legacy/lib/CCC/tipsy" ], function(def, pv, cdo, $) { 13 | 14 | var jQuery = $; 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pvc; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/pvc-d1.0", ["cdf/lib/CCC/def", "cdf/lib/CCC/protovis", "cdf/lib/CCC/cdo", "cdf/jquery", "cdf/lib/CCC/tipsy"], function(def, pv, cdo, $) { 13 | 14 | var jQuery = $; 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/pvc/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pvc; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/amd.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define(['./protovis-compat!', 'jquery', './jquery.tipsy'], function(pv, $) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/amd.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pv.Behavior.tipsy; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/ccc.begin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/tipsy/ccc.begin.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/ccc.end.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/ccc-js/src/main/javascript/build-res/partials/tipsy/ccc.end.js -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/pen-legacy.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf-legacy/lib/CCC/tipsy", [ "cdf-legacy/lib/CCC/protovis", "cdf-legacy/jquery", "cdf-legacy/lib/CCC/jquery.tipsy" ], function(pv, $) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/pen-legacy.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pv.Behavior.tipsy; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/pen.begin.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | pen.define("cdf/lib/CCC/tipsy", ["cdf/lib/CCC/protovis", "cdf/jquery", "cdf/lib/CCC/jquery.tipsy"], function(pv, $) { 13 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/partials/tipsy/pen.end.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | return pv.Behavior.tipsy; 14 | }); 15 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/r.js-configs/protovis-compat.build.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | /* 13 | * requirejs configuration file used to build the protovis-compat.js file 14 | */ 15 | module.exports = 16 | ({ 17 | baseUrl: 'ccc-js/src/main/javascript/package-res/lib', 18 | 19 | name: 'protovis-compat', 20 | create: false, 21 | 22 | optimize: 'uglify2', 23 | removeCombined: true, 24 | preserveLicenseComments: true, 25 | skipModuleInsertion: true, 26 | skipDirOptimize: true, 27 | 28 | throwWhen: { 29 | //If there is an error calling the minifier for some JavaScript, 30 | //instead of just skipping that file throw an error. 31 | optimize: true 32 | }, 33 | 34 | uglify2: { 35 | output: { 36 | beautify: true, 37 | max_line_len: 1000 38 | }, 39 | compress: { 40 | sequences: false, 41 | global_defs: { 42 | DEBUG: false 43 | } 44 | }, 45 | warnings: true, 46 | mangle: false 47 | } 48 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/r.js-configs/protovis-msie.build.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | /* 13 | * requirejs configuration file used to build the protovis-msie.js file 14 | */ 15 | module.exports = 16 | ({ 17 | baseUrl: 'ccc-js/src/main/javascript/package-res/lib', 18 | 19 | name: 'protovis-msie', 20 | create: false, 21 | 22 | optimize: 'uglify2', 23 | removeCombined: true, 24 | preserveLicenseComments: true, 25 | skipModuleInsertion: true, 26 | skipDirOptimize: true, 27 | 28 | throwWhen: { 29 | //If there is an error calling the minifier for some JavaScript, 30 | //instead of just skipping that file throw an error. 31 | optimize: true 32 | }, 33 | 34 | uglify2: { 35 | output: { 36 | beautify: true, 37 | max_line_len: 1000 38 | }, 39 | compress: { 40 | sequences: false, 41 | global_defs: { 42 | DEBUG: false 43 | } 44 | }, 45 | warnings: true, 46 | mangle: false 47 | } 48 | }) -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/r.js-configs/tipsy.build.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | /* 13 | * requirejs configuration file used to build the tipsy.js file 14 | */ 15 | module.exports = 16 | ({ 17 | baseUrl: 'ccc-js/src/main/javascript/package-res/lib', 18 | 19 | name: 'tipsy', 20 | create: false, 21 | 22 | optimize: 'uglify2', 23 | removeCombined: true, 24 | preserveLicenseComments: true, 25 | skipModuleInsertion: true, 26 | skipDirOptimize: true, 27 | 28 | throwWhen: { 29 | //If there is an error calling the minifier for some JavaScript, 30 | //instead of just skipping that file throw an error. 31 | optimize: true 32 | }, 33 | 34 | uglify2: { 35 | output: { 36 | beautify: true, 37 | max_line_len: 1000 38 | }, 39 | compress: { 40 | sequences: false, 41 | global_defs: { 42 | DEBUG: false 43 | } 44 | }, 45 | warnings: true, 46 | mangle: false 47 | } 48 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/build-res/r.js-configs/tipsy.css.build.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | /* 13 | * requirejs configuration file used to build the tipsy.css file 14 | */ 15 | module.exports = 16 | ({ 17 | cssIn: 'ccc-js/src/main/javascript/package-res/lib/tipsy.css', 18 | out: '../module-scripts/tipsy.css', 19 | 20 | removeCombined: true, 21 | preserveLicenseComments: true, 22 | optimizeCss: 'none', 23 | 24 | throwWhen: { 25 | //If there is an error calling the minifier for some JavaScript, 26 | //instead of just skipping that file throw an error. 27 | optimize: true 28 | } 29 | }) -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/_namespace.pvc.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Namespace with protovis chart components. 7 | * @name pvc 8 | * @namespace 9 | */ -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/abstract.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.Abstract') 7 | .init(function() { 8 | this.log = def.logger(this._getLogId, this); 9 | }) 10 | .add({ 11 | invisibleLineWidth: 0.001, 12 | defaultLineWidth: 1.5, 13 | 14 | _logId: null, 15 | 16 | _getLogId: function() { 17 | return this._logId || (this._logId = this._processLogId(this._createLogId())); 18 | }, 19 | 20 | _createLogId: function() { 21 | return String(def.qualNameOf(this.constructor)); 22 | }, 23 | 24 | _processLogId: function(logInstanceId) { 25 | var L = 30, 26 | s = logInstanceId.substr(0, L); 27 | 28 | if(s.length < L) s += def.array.create(L - s.length, ' ').join(''); 29 | 30 | return "[" + s + "]"; 31 | } 32 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/axis/normalized-axis.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /*global pvc_Axis:true */ 6 | 7 | def('pvc.visual.NormalizedAxis', pvc_Axis.extend({ 8 | init: function(chart, type, index, keyArgs) { 9 | 10 | // prevent naked resolution of the axis 11 | keyArgs = def.set(keyArgs, 'byNaked', false); 12 | 13 | this.base(chart, type, index, keyArgs); 14 | }, 15 | methods: /** @lends pvc.visual.NormalizedAxis# */{ 16 | /** @override */scaleTreatsNullAs: function() { return 'zero'; }, 17 | /** @override */scaleUsesAbs: def.retTrue, 18 | /** @override */scaleSumNormalized: def.retTrue, 19 | 20 | setScaleRange: function(range) { 21 | var scale = this.scale; 22 | scale.min = range.min; 23 | scale.max = range.max; 24 | scale.size = range.max - range.min; 25 | 26 | scale.range(scale.min, scale.max); 27 | 28 | if(def.debug >= 4) def.log("Scale: " + def.describe(def.copyOwn(scale))); 29 | 30 | return this; 31 | } 32 | }, 33 | options: { 34 | // Locks the min to 0. 35 | OriginIsZero: { 36 | value: true 37 | } 38 | } 39 | })); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/dataCell/color-dataCell.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.visual.ColorDataCell', pvc.visual.DataCell) 7 | .init(function(plot, axisType, axisIndex, role) { 8 | 9 | this.base(plot, axisType, axisIndex, role); 10 | 11 | this._legendGroupScene = null; 12 | this._legendSymbolRenderer = null; 13 | }) 14 | .add(/** @lends pvc.visual.ColorDataCell.prototype */{ 15 | legendSymbolRenderer: function(_) { 16 | if(arguments.length) { 17 | if(_ && typeof _ === 'object') _ = pvc.visual.legend.symbolRenderer(_); 18 | this._legendSymbolRenderer = _; 19 | return this; 20 | } 21 | return this._legendSymbolRenderer; 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/panel/content-panel.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.ContentPanel', pvc.BasePanel) 7 | .add({ 8 | anchor: 'fill', 9 | 10 | _getExtensionId: function() { 11 | return [{abs: !this.chart.parent ? 'content' : 'smallContent'}]; 12 | } 13 | }); 14 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/panel/legend/scene/legend-item-sceneSection.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | def 14 | .type('pvc.visual.legend.LegendItemSceneSection') 15 | .init(function(index) { 16 | this.index = index; 17 | this.items = []; 18 | this.size = {width: 0, height: 0}; 19 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/panel/title/title-panel.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.TitlePanel', pvc.TitlePanelAbstract) 7 | .init(function(chart, parent, options) { 8 | 9 | if(!options) options = {}; 10 | 11 | var isV1Compat = chart.compatVersion() <= 1; 12 | if(isV1Compat) { 13 | var size = options.titleSize; 14 | if(size == null) options.titleSize = 25; 15 | } 16 | 17 | // Must be done before calling base, cause it uses _getExtension 18 | this._extensionPrefix = !chart.parent ? "title" : "smallTitle"; 19 | 20 | this.base(chart, parent, options); 21 | }) 22 | .add({ 23 | 24 | font: "14px sans-serif", 25 | 26 | defaultPaddings: 4 27 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/plot/plotBg-panel.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.PlotBgPanel', pvc.BasePanel) 7 | .init(function(chart, parent, options) { 8 | // Prevent the border from affecting the box model, 9 | // providing a static 0 value, independently of the actual drawn value... 10 | //this.borderWidth = 0; 11 | 12 | this.base(chart, parent, options); 13 | 14 | //this._extensionPrefix = "plotBg"; 15 | }) 16 | .add({ 17 | anchor: 'fill', 18 | 19 | _getExtensionId: function() { 20 | return 'plotBg'; 21 | }, 22 | 23 | _createCore: function(layoutInfo) { 24 | // Send the panel behind grid rules 25 | this.pvPanel 26 | .borderPanel 27 | .lock('zOrder', -13) 28 | .antialias(false); 29 | 30 | this.base(layoutInfo); 31 | } 32 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/shims.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | if(!Array.prototype.every) Array.prototype.every = function(fun /*, thisArg */) { 14 | 'use strict'; 15 | 16 | if(this == null) throw new TypeError(); 17 | 18 | var t = Object(this); 19 | var len = t.length >>> 0; 20 | if(typeof fun !== 'function') throw new TypeError(); 21 | 22 | var thisArg = arguments.length >= 2 ? arguments[1] : void 0; 23 | for(var i = 0; i < len; i++) if(i in t && !fun.call(thisArg, t[i], i, t)) return false; 24 | return true; 25 | }; -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/sign/label-sign.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def('pvc.visual.Label', pvc.visual.Sign.extend({ 6 | init: function(panel, protoMark, keyArgs) { 7 | 8 | var pvMark = protoMark.add(pv.Label); 9 | 10 | this.base(panel, pvMark, keyArgs); 11 | }, 12 | methods: /** @lends pvc.visual.Label# */{ 13 | _addInteractive: function(keyArgs) { 14 | var t = true; 15 | keyArgs = def.setDefaults(keyArgs, 16 | 'noSelect', t, 17 | 'noHover', t, 18 | 'noTooltip', t, 19 | 'noClick', t, 20 | 'noDoubleClick', t, 21 | 'showsInteraction', false); 22 | 23 | this.base(keyArgs); 24 | }, 25 | 26 | defaultColor: def.fun.constant(pv.Color.names.black) 27 | } 28 | })); 29 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/base/sign/panel-sign.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def('pvc.visual.Panel', pvc.visual.Sign.extend({ 6 | init: function(panel, protoMark, keyArgs) { 7 | var pvPanel = def.get(keyArgs, 'panel'); 8 | if(!pvPanel) { 9 | var pvPanelType = def.get(keyArgs, 'panelType') || pv.Panel; 10 | 11 | pvPanel = protoMark.add(pvPanelType); 12 | } 13 | 14 | this.base(panel, pvPanel, keyArgs); 15 | }, 16 | methods: /** @lends pvc.visual.Panel# */{ 17 | _addInteractive: function(keyArgs) { 18 | var t = true; 19 | keyArgs = def.setDefaults(keyArgs, 20 | 'noSelect', t, 21 | 'noHover', t, 22 | 'noTooltip', t, 23 | 'noClick', t, 24 | 'noDoubleClick', t); 25 | 26 | this.base(keyArgs); 27 | } 28 | } 29 | })); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/cartesian/axis/cart-axis-title-panel.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /*global pvc_Size:true */ 6 | 7 | def 8 | .type('pvc.AxisTitlePanel', pvc.TitlePanelAbstract) 9 | .init(function(chart, parent, axis, options) { 10 | 11 | this.axis = axis; 12 | 13 | this.base(chart, parent, options); 14 | 15 | this._extensionPrefix = 16 | axis 17 | .extensionPrefixes 18 | .map(function(prefix) { 19 | return prefix + 'Title'; 20 | }); 21 | }) 22 | .add({ 23 | _calcLayout: function(layoutInfo) { 24 | var scale = this.axis.scale; 25 | if(!scale || scale.isNull) { 26 | return new pvc_Size(0, 0); 27 | } 28 | 29 | return this.base(layoutInfo); 30 | }, 31 | 32 | _createCore: function(layoutInfo) { 33 | var scale = this.axis.scale; 34 | if(!scale || scale.isNull) { 35 | return; 36 | } 37 | 38 | return this.base(layoutInfo); 39 | } 40 | }); 41 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/cartesian/axis/root-cart-axis-scene.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Initializes an axis root scene. 7 | * 8 | * @name pvc.visual.CartesianAxisRootScene 9 | * 10 | * @extends pvc.visual.Scene 11 | * 12 | * @constructor 13 | * @param {pvc.visual.Scene} [parent] The parent scene, if any. 14 | * @param {object} [keyArgs] Keyword arguments. 15 | * See {@link pvc.visual.Scene} for supported keyword arguments. 16 | */ 17 | def 18 | .type('pvc.visual.CartesianAxisRootScene', pvc.visual.Scene); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/cartesian/axis/tick-cart-axis-scene.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /*global pvc_ValueLabelVar:true*/ 6 | 7 | /** 8 | * Initializes an axis tick scene. 9 | * 10 | * @name pvc.visual.CartesianAxisTickScene 11 | * 12 | * @extends pvc.visual.Scene 13 | * 14 | * @constructor 15 | * @param {pvc.visual.CartesianAxisRootScene} [parent] The parent scene, if any. 16 | * @param {object} [keyArgs] Keyword arguments. 17 | * See {@link pvc.visual.Scene} for supported keyword arguments. 18 | */ 19 | def 20 | .type('pvc.visual.CartesianAxisTickScene', pvc.visual.Scene) 21 | .init(function(parent, keyArgs) { 22 | 23 | this.base(parent, keyArgs); 24 | 25 | this.vars.tick = new pvc_ValueLabelVar( 26 | def.get(keyArgs, 'tick'), 27 | def.get(keyArgs, 'tickLabel'), 28 | def.get(keyArgs, 'tickRaw')); 29 | 30 | if(def.get(keyArgs, 'isHidden')) this.isHidden = true; 31 | }) 32 | .add({ 33 | // True when the scene contains excluded data(s) 34 | // due to overlappedLabelsMode:hide exclusion 35 | isHidden: false 36 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/cartesian/ortho-cart-dataCell.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.visual.CartesianOrthoDataCell', pvc.visual.DataCell) 7 | .init(function(plot, axisType, axisIndex, roleName, 8 | isStacked, 9 | nullInterpolationMode, 10 | trend) { 11 | 12 | this.base(plot, axisType, axisIndex, roleName); 13 | 14 | this.isStacked = isStacked; 15 | this.nullInterpolationMode = nullInterpolationMode; 16 | this.trend = trend; 17 | }); 18 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/categorical/categ-chart.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * CategoricalAbstract is the base class for all categorical or timeseries 7 | */ 8 | def 9 | .type('pvc.CategoricalAbstract', pvc.CartesianAbstract) 10 | .add({ 11 | /** 12 | * Called when the scene tree of a descendant categorical plot panel is to be created with the given data. 13 | * 14 | * @param {pvc.pvc.CategoricalAbstractPanel} plotPanel - The categorical plot panel. 15 | * @param {pvc.data.Data} data - The visible data. 16 | * @param {Array.} axisSeriesDatas - The visible axis series datas. 17 | * @param {Array.} axisCategDatas - The visible axis categories datas. 18 | * @abstract 19 | */ 20 | _onWillCreatePlotPanelScene: function(plotPanel, data, axisSeriesDatas, axisCategDatas) { 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/core/categorical/categ-plot-panel.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def 6 | .type('pvc.CategoricalAbstractPanel', pvc.CartesianAbstractPanel) 7 | .init(function(chart, parent, plot, options) { 8 | 9 | this.base(chart, parent, plot, options); 10 | 11 | this.stacked = plot.option('Stacked'); 12 | }) 13 | .add({ 14 | /** 15 | * Builds the panel's scene tree based on the data to display. 16 | * 17 | * @param {pvc.data.Data} data - The visible data. 18 | * @param {Array.} axisSeriesDatas - The visible axis series datas. 19 | * @param {Array.} axisCategDatas - The visible axis categories datas. 20 | * @return {pvc.visual.Scene} The root scene. 21 | * @abstract 22 | */ 23 | _buildScene: function(data, axisSeriesDatas, axisCategDatas) { 24 | 25 | this.chart._onWillCreatePlotPanelScene(this, data, axisSeriesDatas, axisCategDatas); 26 | 27 | return this._buildSceneCore(data, axisSeriesDatas, axisCategDatas); 28 | } 29 | }); 30 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/abstract-bar/abstract-bar-chart.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * BarAbstract is the base class for generating charts of the bar family. 7 | */ 8 | def.type('pvc.BarAbstract', pvc.CategoricalAbstract); 9 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/abstract-metricxy/abstract-metricxy-chart.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * MetricXYAbstract is the base class of metric XY charts. 7 | * (Metric stands for: 8 | * Measure, Continuous or Not-categorical base and ortho axis) 9 | */ 10 | def 11 | .type('pvc.MetricXYAbstract', pvc.CartesianAbstract) 12 | .add({ 13 | // Has no representation in this chart's main plot type. 14 | _defaultAxisBandSizeRatio: 1, 15 | 16 | _getIsNullDatum: function() { 17 | var me = this, measureDimNames, M; 18 | 19 | // If x or y are null, it is a null datum. 20 | return function(datum) { 21 | if(!measureDimNames) { 22 | measureDimNames = def.query([me.visualRoles.x, me.visualRoles.y]) 23 | .selectMany(function(role) { return role.grouping.dimensionNames(); }) 24 | .distinct() 25 | .array(); 26 | M = measureDimNames.length; 27 | } 28 | 29 | if(!M) return false; 30 | var atoms = datum.atoms; 31 | for(var i = 0 ; i < M ; i++) if(atoms[measureDimNames[i]].value == null) return true; 32 | return false; 33 | }; 34 | } 35 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/bar/bar-plot-panel.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Bar Panel. 7 | */ 8 | def 9 | .type('pvc.BarPanel', pvc.BarAbstractPanel) 10 | .add({ 11 | plotType: 'bar', 12 | _ibits: -1 // reset 13 | }); 14 | 15 | pvc.PlotPanel.registerClass(pvc.BarPanel); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/bar/bar-plot.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Initializes a bar plot. 7 | * 8 | * @name pvc.visual.BarPlot 9 | * @class Represents a bar plot. 10 | * @extends pvc.visual.BarPlotAbstract 11 | */ 12 | def('pvc.visual.BarPlot', pvc.visual.BarPlotAbstract.extend({ 13 | methods: /** @lends pvc.visual.BarPlot# */{ 14 | type: 'bar' 15 | } 16 | })); 17 | 18 | pvc.visual.Plot.registerClass(pvc.visual.BarPlot); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/nbar/nbar-chart.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * A NormalizedBarChart is a 100% stacked bar chart. 7 | */ 8 | def 9 | .type('pvc.NormalizedBarChart', pvc.BarChart) 10 | .add({ 11 | /** @Override */ 12 | _createMainPlot: function() { 13 | this._addPlot(new pvc.visual.BarPlot(this, { 14 | fixed: {ValuesNormalized: true, Stacked:true} 15 | })); 16 | } 17 | }); 18 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/water/water-legend-group-scene.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Initializes a waterfall legend group scene. 7 | * 8 | * @name pvc.visual.legend.WaterfallLegendGroupScene 9 | 10 | * @extends pvc.visual.legend.LegendGroupScene 11 | * 12 | * @constructor 13 | * @param {pvc.visual.legend.LegendRootScene} parent The parent root scene. 14 | * @param {object} [keyArgs] Keyword arguments. 15 | * See {@link pvc.visual.Scene} for additional keyword arguments. 16 | * @param {pv.visual.legend.renderer} [keyArgs.renderer] Keyword arguments. 17 | */ 18 | def 19 | .type('pvc.visual.legend.WaterfallLegendGroupScene', pvc.visual.legend.LegendGroupScene) 20 | .init(function(rootScene, plot, keyArgs) { 21 | 22 | keyArgs = def.set(keyArgs, 'clickMode', 'none'); 23 | 24 | this.base(rootScene, keyArgs); 25 | 26 | this.plot = plot; 27 | 28 | this.createItem(keyArgs); // label && color 29 | }) 30 | .add(/** @lends pvc.visual.legend.WaterfallLegendGroupScene# */{ 31 | itemSceneType: function() { 32 | return pvc.visual.legend.WaterfallLegendItemScene; 33 | } 34 | }); 35 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/ccc/plugin/water/water-legend-item-scene.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /*global pvc_ValueLabelVar:true */ 6 | 7 | def 8 | .type('pvc.visual.legend.WaterfallLegendItemScene', pvc.visual.legend.LegendItemScene) 9 | .init(function(groupScene, keyArgs) { 10 | 11 | this.base.apply(this, arguments); 12 | 13 | // Don't allow any Action 14 | var I = pvc.visual.Interactive; 15 | this._ibits = I.Interactive | I.ShowsInteraction; 16 | 17 | this.color = def.get(keyArgs, 'color'); 18 | 19 | // Pre-create 'value' variable 20 | this.vars.value = new pvc_ValueLabelVar(null, def.get(keyArgs, 'label')); 21 | }); 22 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/cdo.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | // Required by cdo.build.js configuration. -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/cdo/complexView.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Initializes a complex view instance. 7 | * 8 | * @name cdo.ComplexView 9 | * 10 | * @class Represents a view of certain dimensions over a given source complex instance. 11 | * @extends cdo.Complex 12 | * 13 | * @property {cdo.Complex} source The source complex instance. 14 | * @property {string} label The composite label of the own atoms in the view. 15 | * @constructor 16 | * @param {cdo.Complex} source The source complex instance. 17 | * @param {string[]} viewDimNames The dimensions that should be revealed by the view. 18 | */ 19 | def.type('cdo.ComplexView', cdo.Complex) 20 | .init(function(source, viewDimNames) { 21 | 22 | this.source = source; 23 | 24 | this.viewDimNames = viewDimNames; 25 | 26 | // Call base constructor 27 | this.base(source, source.atoms, viewDimNames, source.owner.atoms, /* wantLabel */ true); 28 | }) 29 | .add({ 30 | values: function() { 31 | return cdo.Complex.values(this, this.viewDimNames); 32 | }, 33 | labels: function() { 34 | return cdo.Complex.labels(this, this.viewDimNames); 35 | } 36 | }); -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/cdo/data/data-filtered.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | def.type('cdo.FilteredData', cdo.Data) 6 | .init(function(keyArgs) { 7 | 8 | // Always a root, linked data. 9 | if(keyArgs == null || keyArgs.parent != null || keyArgs.linkParent == null) { 10 | throw def.error.argumentRequired('keyArgs.linkParent'); 11 | } 12 | 13 | this.base(keyArgs); 14 | 15 | /** 16 | * The predicate that filtered the datums of this data set. 17 | * 18 | * @type {function(!cdo.Datum) : boolean} 19 | * @private 20 | */ 21 | this._wherePred = keyArgs.where || def.fail.argumentRequired('keyArgs.where'); 22 | }) 23 | .add({ 24 | _addDatumsSimple: function(newDatums) { 25 | 26 | newDatums = newDatums.filter(this._wherePred); 27 | 28 | this.base(newDatums); 29 | } 30 | }); 31 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/cdo/oper/abstract-oper.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * Initializes a data operation. 7 | * 8 | * @name cdo.DataOper 9 | * 10 | * @class The base abstract class for a data operation. 11 | * Performs an initial query on the datums of the operation's link parent 12 | * and hands the final implementation to a derived class. 13 | * 14 | * @property {string} key Set on construction with a value that identifies the operation. 15 | * 16 | * @constructor 17 | * 18 | * @param {cdo.Data} linkParent The link parent data. 19 | * @param {object} [keyArgs] Keyword arguments. 20 | */ 21 | def.type('cdo.DataOper') 22 | .init(function(linkParent, keyArgs) { 23 | /*jshint expr:true */ 24 | linkParent || def.fail.argumentRequired('linkParent'); 25 | 26 | this._linkParent = linkParent; 27 | }). 28 | add(/** @lends cdo.DataOper */{ 29 | 30 | key: null, 31 | 32 | /** 33 | * Performs the data operation. 34 | * 35 | * @returns {cdo.Data} The resulting root data. 36 | */ 37 | execute: def.abstractMethod 38 | }); 39 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | // Required by def.build.js configuration. -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/attached.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | // TODO: consider using a private property for this. 14 | def.attached = function(o, n, v) { 15 | var at = o.__attached__; // undefined when missing 16 | if(arguments.length > 2) { 17 | if(v !== undefined) { 18 | if(!at) def.setNonEnum(o, '__attached__', (at = {})); 19 | at[n] = v; 20 | } 21 | return o; 22 | } 23 | return at && at[n]; 24 | }; 25 | 26 | def.attached.is = function(n) { 27 | return !(!n || n.indexOf('$') < 0); 28 | }; 29 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/bit.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.copyOwn(def, /** @lends def */{ 13 | 14 | bit: { 15 | set: function(bits, set, on) { return (on || on == null) ? (bits | set) : (bits & ~set); } 16 | } 17 | 18 | }); 19 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/conversion.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.copyOwn(def, /** @lends def */{ 13 | // nully to 'dv' 14 | nullyTo: function(v, dv) { return v != null ? v : dv; } 15 | }); 16 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/create.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | // Creates an object whose prototype is the specified object. 13 | def.create = function(/*[deep,] baseProto, mixin1, mixin2, ...*/) { 14 | var mixins = A_slice.call(arguments), 15 | deep = true, 16 | baseProto = mixins.shift(); 17 | 18 | if(typeof baseProto === 'boolean') { 19 | deep = baseProto; 20 | baseProto = mixins.shift(); 21 | } 22 | 23 | var instance; 24 | if(baseProto) { 25 | instance = Object.create(baseProto); 26 | if(deep) createRecursive(instance); 27 | } else { 28 | instance = {}; 29 | } 30 | 31 | if(mixins.length > 0) { 32 | mixins.unshift(instance); 33 | def.mixin.apply(def, mixins); 34 | } 35 | 36 | return instance; 37 | }; 38 | 39 | /** @private */ 40 | function createRecursive(instance) { 41 | var p, vObj; 42 | for(p in instance) 43 | if((vObj = def.object.asNative(instance[p]))) 44 | createRecursive( (instance[p] = Object.create(vObj)) ); 45 | } 46 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/css.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.css = { 13 | // TODO: very basic implementation 14 | escapeClass: function(name) { 15 | return (name||'').replace(/\s/g, "_"); 16 | } 17 | }; 18 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/epilogue.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | // Reset namespace to global, instead of 'def' 13 | def_currentSpace = def.global; -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/info.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.info = function def_meta(o, info) { 13 | var i; 14 | if(o && info) { 15 | i = o.__info__; 16 | 17 | if(arguments.length < 2) return i; 18 | 19 | if(!i) def.setNonEnum(o, '__info__', (i = {})); 20 | 21 | def.copyOwn(i, info); 22 | } 23 | 24 | return o; 25 | }; 26 | 27 | def.info.get = function(o, p, dv) { 28 | return def.get(o && o.__info__, p, dv); 29 | }; -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/number.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.number = { 13 | is: function(v) { return typeof v === 'number'; }, 14 | 15 | as: function(v, dv) { 16 | return typeof v === 'number' ? v : dv; 17 | }, 18 | 19 | to: function(v, dv) { 20 | if(v == null) return dv; 21 | 22 | var v2 = +v; 23 | return isNaN(v2) ? dv : v2; 24 | }, 25 | 26 | toPositive: function(v, dv) { 27 | v = def.number.to(v); 28 | return (v != null && !(v > 0)) ? dv : v; 29 | }, 30 | 31 | toNonNegative: function(v, dv) { 32 | v = def.number.to(v); 33 | return (v != null && v < 0) ? dv : v; 34 | }, 35 | 36 | toBetween: function(v, vmin, vmax, dv) { 37 | var v2 = def.number.to(v); 38 | if(v2 == null) return dv; 39 | return Math.max(vmin, Math.min(vmax, v2)); 40 | } 41 | }; 42 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/predicate.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.copyOwn(def, /** @lends def */{ 13 | between: function(v, min, max) { return Math.max(min, Math.min(v, max)); }, 14 | 15 | // Predicates ---------------- 16 | 17 | // === null || === undefined 18 | nully: function(v) { return v == null; }, 19 | 20 | // !== null && !== undefined 21 | notNully: function(v) { return v != null; }, 22 | 23 | // !== undefined 24 | notUndef: function(v) { return v !== undefined; }, 25 | 26 | empty: function(v) { return v == null || v === ''; }, 27 | 28 | notEmpty: function(v) { return v != null && v !== ''; }, 29 | 30 | /** 31 | * The truthy function. 32 | * @field 33 | * @type function 34 | */ 35 | truthy: function(x) { return !!x; }, 36 | 37 | /** 38 | * The falsy function. 39 | * @field 40 | * @type function 41 | */ 42 | falsy: function(x) { return !x; } 43 | }); 44 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/type/Object.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | 13 | var def_Object = new def_MetaType() 14 | .close() 15 | .Ctor 16 | .add({ 17 | override: function(p, v) { 18 | return def_method_(this, p, v, def.protoOf(this), def_Object.prototype, /*enumerable*/true), this; 19 | }, 20 | 21 | toString: function() { 22 | return "[object " + String(def.qualNameOf(def.classOf(this))) + "]"; 23 | } 24 | }, {enumerable: false}); 25 | 26 | def('Object', def_Object); // def is current namespace 27 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/type/enum.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.makeEnum = function(a, ka) { 13 | var i = 1, 14 | all = 0, 15 | e = {}, 16 | allItem = def.get(ka, 'all'), 17 | zeroItem = def.get(ka, 'zero'); 18 | 19 | a.forEach(function(p) { 20 | e[p] = i; 21 | if(allItem) all |= i; 22 | i = i << 1; 23 | }); 24 | 25 | if(zeroItem) e[zeroItem] = 0; 26 | if(allItem) e[allItem] = all; 27 | 28 | return e; 29 | }; 30 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/type/inherit.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | def.fun.inherit = def_inherit; 13 | 14 | function def_inherit(Ctor, BaseCtor) { 15 | // Operator instanceof works even if the constructor property is not fixed. 16 | // However, if the constructor is not fixed, 17 | // all instances of a given class hierarchy, whatever its class, 18 | // will evaluate the constructor property as being the root class of the class hierarchy. 19 | // To later allow walking up the prototype chain, even in browsers that don't support 20 | // Object.getPrototypeOf or __proto__, we place a __proto__ property in the new 21 | // Ctor.prototype, pointing to the base prototype. See def.protoOf. 22 | if(BaseCtor) { 23 | var baseProto = BaseCtor.prototype, 24 | proto = Ctor.prototype = Object.create(baseProto); 25 | 26 | def.setNonEnum(proto, 'constructor', Ctor); 27 | if(!('__proto__' in proto)) def.setNonEnum(proto, '__proto__', baseProto); 28 | } 29 | 30 | return Ctor; 31 | } -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/def/type/type.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | /** 13 | * Constructs a type with the specified name in the current namespace. 14 | * 15 | * @function 16 | * @param {string} [name] The new type name, relative to the base argument. 17 | * When unspecified, an anonymous type is created. 18 | * The type is not published in any namespace. 19 | * 20 | * @param {object} [baseType] The base type. 21 | * @param {object} [space] The namespace where to define a named type. 22 | * The default namespace is the current namespace. 23 | * 24 | * @deprecated use extend on a base constructor instead. 25 | */ 26 | def.type = def.argumentsTypeBound([ 27 | // name[, baseType[, space]] | baseType[, space] | space 28 | 'string', 'function', 'object' 29 | ], function(name, baseCtor, space) { 30 | var BaseMetaType = baseCtor ? baseCtor.MetaType : def_MetaType, 31 | TypeCtor = BaseMetaType.extend().Ctor; 32 | return def(name, TypeCtor, space); 33 | }); 34 | -------------------------------------------------------------------------------- /ccc-js/src/main/javascript/package-res/pvc.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | // Required by pvc.build.js configuration. -------------------------------------------------------------------------------- /ccc-js/src/test/javascript/cdo/atom-spec.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | define([ 13 | 'test/utils', 14 | 'test/data-1' 15 | ], function(utils, datas) { 16 | describe('Atom', function() { 17 | describe("loading over BarChart", function(){ 18 | var data = utils.loadDataOverBaseChart(datas['cross-tab, category missing on first series']); 19 | 20 | it("should be selected after setSelected", function(){ 21 | var atoms = data.dimensions('series').atoms(); 22 | 23 | expect(atoms[0].toString()).toBe("London"); 24 | expect(atoms[1].toString()).toBe("Lisbon"); 25 | }); 26 | }); 27 | 28 | }); 29 | }); -------------------------------------------------------------------------------- /doc/kettle/componentProtovisChart.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 | PrimitiveComponentType 4 | Protovis Component 5 | protovis 6 | Protovis Chart Component 7 | CHARTS 8 | Charts 9 | 405 10 | PalleteEntry 11 | 1.0 12 |
13 | 14 | true 15 | 16 | 17 | 18 | width 19 | height 20 | 21 | dataSource 22 | 23 | 24 | silent 25 | 26 | xActionArrayParameter 27 | executeAtStart 28 | preChange 29 | postChange 30 | postFetch 31 | customfunction 32 | htmlObject 33 | preExecution 34 | postExecution 35 | tooltip 36 | listeners 37 | refreshPeriod 38 | clearsBeforePreExecution 39 | 40 | 41 |
-------------------------------------------------------------------------------- /doc/kettle/configCustomChartDescription.csv: -------------------------------------------------------------------------------- 1 | ChartTypeName;ChartTypeDescription 2 | HeatGridChart;CCC Heat Grid 3 | NormalizedBarChart;CCC 100% Stacked Bar Chart -------------------------------------------------------------------------------- /doc/kettle/configCustomPropertyAdvanced.csv: -------------------------------------------------------------------------------- 1 | PropertyTypeName;PropertyTypeAdvanced 2 | ortho2AxisTitle;true 3 | -------------------------------------------------------------------------------- /doc/kettle/configCustomPropertyDescription.csv: -------------------------------------------------------------------------------- 1 | ChartTypeName;ChartTypeDescription 2 | compatVersion;Compatibility Version 3 | multiChartSingleColFillsHeight;Multi Chart Single Column Fills Height 4 | -------------------------------------------------------------------------------- /doc/kettle/configPropertyDefaultOverride.csv: -------------------------------------------------------------------------------- 1 | RewrittenPropertyName;NewDefaultValue 2 | compatVersion;3 3 | legend;true 4 | bulletRanges;"[30,60,90]" 5 | valuesOptimizeLegibility; 6 | legendPosition; 7 | legendFont; 8 | legendOverflow; 9 | legendPaddings; 10 | legendMargins; 11 | legendItemPadding; 12 | legendTextMargin; 13 | legendMarkerSize; 14 | titlePosition; 15 | margins; 16 | paddings; 17 | contentMargins; 18 | contentPaddings; 19 | barSizeRatio; 20 | barSizeMin; 21 | barSizeMax; 22 | dotsVisible; 23 | linesVisible; 24 | activeSliceRadius; 25 | baseAxisTitleFont; 26 | smallTitleFont; 27 | titleFont; 28 | trendValuesFont; 29 | valuesFont; 30 | ortho2AxisTitleFont; 31 | orthoAxisTitleFont; 32 | plot2ValuesFont; 33 | baseAxisGrid; 34 | orthoAxisGrid; 35 | ortho2AxisGrid; 36 | plotFrameVisible; 37 | orthoAxisMinorTicks; 38 | baseAxisOverlappedLabelsMode; 39 | baseAxisLabelRotationDirection; 40 | useShapes; 41 | legend; 42 | -------------------------------------------------------------------------------- /doc/kettle/configPropertyNameRewrite.csv: -------------------------------------------------------------------------------- 1 | PropertyNamePattern;PropertyNameReplace 2 | colorColors;colors 3 | colorLegend(.+);legend$1 -------------------------------------------------------------------------------- /doc/lib/jsdoc_toolkit-2.4.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/doc/lib/jsdoc_toolkit-2.4.0.zip -------------------------------------------------------------------------------- /doc/model/axes/_axes.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The namespace of CCC axes options classes. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/model/data/_data.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doc/model/facets/_facets.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /doc/model/facets/plotMain.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | The index of the color axis to use for the plot. 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | The index of the orthogonal cartesian axis to use for the plot. 20 | 21 | 22 | 23 | 24 | 25 | The index of the color axis to use for the plot. 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /doc/model/facets/plotValuesOverflow.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 11 | 12 | The behavior to apply when the text of value labels does not fit within the bounds of its corresponding visual element. 13 | 14 | This option only applies when is true. 15 | Moreover, it also only applies for certain configurations of value label placement, 16 | relative to the corresponding visual element. 17 | The supported label placement conditions depend on the chart type and are with it documented. 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/model/format/_format.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The namespace of formatting options classes. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /doc/model/format/customFormat.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The options documentation of the custom format class. 11 | 12 | A custom format formats arbitrary values with a 13 | custom, user supplied, formatting function: 14 | . 15 | 16 | See for 17 | more information on inheritance of formatting configurations. 18 | 19 | 20 | 21 | The custom formatting function. 22 | 23 | The signature of this function is that of a dimension formatter. 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /doc/model/marks/bar.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | The class of protovis Bar extension points. 15 | 16 | See the associated protovis documentation at 17 | . 18 | 19 | 20 | 21 | 22 | The width of the bar. 23 | 24 | 25 | 26 | 27 | 28 | The height of the bar. 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /doc/model/marks/line.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | The class of protovis Line extension points. 17 | 18 | See the associated protovis documentation at 19 | . 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/model/marks/rule.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | The class of protovis Rule extension points. 14 | 15 | See the associated protovis documentation at 16 | . 17 | 18 | 19 | 20 | 21 | The width of the rule, when it is horizontal. 22 | 23 | 24 | 25 | 26 | 27 | The height of the rule, when it is vertical. 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /doc/model/panels/_panels.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The namespace of CCC panels options classes. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /doc/model/plots/_plots.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The namespace of plot options classes. 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/axisLabelRotationDirection.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The possible rotation directions. 11 | 12 | 13 | 14 | 15 | Circular motion in the same direction as a clock's hands. 16 | 17 | 18 | 19 | 20 | 21 | Circular motion in the opposite direction as a clock's hands. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/boxLayoutMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The arrangement of boxes within the same category band. 11 | 12 | 13 | 14 | 15 | Multiple boxes within the same category band 16 | are sized and distributed horizontally 17 | to fit the width of the category band. 18 | 19 | The space between boxes of the same category 20 | is given by the boxSizeRatio option. 21 | 22 | 23 | 24 | 25 | 26 | Every box having the same category 27 | is horizontally placed in the center of the category band, 28 | and, generally, overlaps. 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/chartClearSelectionMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | Controls if and how the selection can be cleared by the user. 11 | 12 | 13 | 14 | 15 | The user has no way to explicitly fully clear the selection. 16 | 17 | It is still possible to clear the selection, 18 | if the selection behavior performs a toggling operation. 19 | 20 | Selection can always be cleared by code. 21 | 22 | 23 | 24 | 25 | 26 | The user can click on any empty area 27 | inside the chart to clear the selection. 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/chartOrientation.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The main direction of drawing. 11 | 12 | 13 | 14 | 15 | Vertical direction. 16 | 17 | 18 | 19 | 20 | 21 | Horizontal direction. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/contentOverflow.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | Controls what to do with content that overflows. 11 | 12 | 13 | 14 | 15 | Content is hidden only if one of the cartesian axis of a plot 16 | has its fixedMin, fixedMax, fixedLength, ratio 17 | or preserveRatio options specified. 18 | 19 | 20 | 21 | 22 | 23 | Content that overflows is hidden. 24 | 25 | 26 | 27 | 28 | 29 | Content that overflows is visible. 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/dotShapeType.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The shapes that are available in protovis Dot marks. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/legendClickMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | Control the beahvior of the legend 11 | when the user clicks a legend item. 12 | 13 | 14 | 15 | 16 | Nothing happens. 17 | 18 | 19 | 20 | 21 | 22 | The corresponding datums' selected state is toggled. 23 | 24 | 25 | 26 | 27 | 28 | The corresponding datums' visible state is toggled. 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/markAnchor.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The anchors that are available to all protovis marks, 11 | with the exception of the Wedge mark 12 | (see ). 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/multiChartOverflow.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The possible strategies for when the number of small charts 11 | overflows the initial chart dimensions. 12 | 13 | 14 | 15 | 16 | The chart grows in size as needed to fit all of the small-charts. 17 | 18 | 19 | 20 | 21 | 22 | The small-charts are sized so that they all fit the initial chart size. 23 | 24 | 25 | 26 | 27 | 28 | Only the first small-charts that entirely fit 29 | in the initial chart size are actually shown. 30 | 31 | An overflow indicator is shown by default. 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/pieValuesLabelStyle.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The possible value label styles of pie charts 11 | 12 | 13 | 14 | 15 | Value labels are placed inside 16 | their corresponding pie slice. 17 | 18 | 19 | 20 | 21 | Value labels are placed outside 22 | their corresponding pie slice, 23 | linked to it by a line. 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/pointingCollapse.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The names of position components to be ignored when determining the distance 11 | between the pointer and a visual element. 12 | 13 | 14 | 15 | 16 | Considers both the horizontal and vertical distance components. 17 | 18 | 19 | 20 | 21 | 22 | Ignores the horizontal distance. 23 | 24 | 25 | 26 | 27 | 28 | Ignores the vertical distance. 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/pointingMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The pointing mode controls the way that certain pointer events are handled 11 | for purposes of detecting whether the pointer is pointing to a certain visual element. 12 | 13 | 14 | 15 | 16 | The mouse is considered to point to a visual element when it is over it. 17 | 18 | 19 | 20 | 21 | 22 | The mouse is considered to point to a visual element if it is at 23 | a certain minimum distance of it and there is no other visual element at 24 | a closer distance. 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/rectangleSide.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The names of the four sides of a rectangle. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/sliceOrder.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | The slices' layout order. 10 | 11 | 12 | 13 | 14 | Lays out sibling slices by ascending size value. 15 | 16 | 17 | 18 | 19 | 20 | Lays out sibling slices by descending size value. 21 | 22 | 23 | 24 | 25 | 26 | Lays out sibling slices in their natural order (the order in the datasource). 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/text.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The horizontal alignment of text. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | The vertical alignment of text. 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/tooltipAutoContent.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The type of automatic content that can be generated for a tooltip. 11 | 12 | 13 | 14 | 15 | The tooltip content is the label 16 | associated to the main value in a certain context. 17 | 18 | For example, in a discrete cartesian axis, the value is the corresponding tick value. 19 | 20 | 21 | 22 | 23 | The tooltip content is a summary of the data associated with the visual element. 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/treemapColorMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | Indicates if the color is assigned to parent nodes or to leaf nodes. 11 | 12 | 13 | 14 | 15 | Colors are reserved for nodes that have leaf children. Leaf children show the color of their parent. 16 | 17 | 18 | 19 | 20 | Colors are reserved for leaf-nodes. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/treemapLayoutMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The rectangle layout algorithm used by a treemap plot. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/waterDirection.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The direction of the waterfall. 11 | 12 | 13 | 14 | 15 | The water of the waterfall falls, 16 | from left to right. 17 | 18 | 19 | 20 | 21 | 22 | The water of the waterfall falls, 23 | from right to left, 24 | (or climbs, from left to right). 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /doc/model/varia/atoms/wedgeAnchor.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The anchors that are available to the protovis Wedge mark. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /doc/model/varia/functions/colorTransform.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | A function that applies an effect to 11 | an input color and returns the resulting color. 12 | 13 | 14 | 15 | The global JavaScript object. 16 | 17 | 18 | 19 | 20 | The color to transform. 21 | 22 | 23 | 24 | 25 | The transformed color. 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /doc/model/varia/functions/dataWhere.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | A function that filters datums being loaded. 11 | 12 | 13 | 14 | The global JavaScript object. 15 | 16 | 17 | 18 | 19 | The datum being loaded. 20 | 21 | 22 | 23 | 24 | true if the datum should be included, 25 | false if it should be excluded. 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /doc/model/varia/functions/dimensionKey.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | A function that converts a non-null value of the dimension's 11 | 12 | into a string that (uniquely) identifies 13 | the value in the dimension. 14 | 15 | 16 | 17 | The global JavaScript object. 18 | 19 | 20 | 21 | 22 | The non-null value to convert. 23 | 24 | 25 | 26 | 27 | The corresponding key. 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /doc/model/varia/functions/numberFormatter.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | A function that formats a non-null numeric value 11 | according to some predefined format. 12 | 13 | 14 | 15 | The global JavaScript object. 16 | 17 | 18 | 19 | 20 | The non-null number to format. 21 | 22 | 23 | 24 | 25 | The number formatted as a non-empty string. 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /doc/model/varia/functions/selectionChangedAction.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | A callback function that is called 11 | when, after selection has changed, 12 | the chart is updated to reflect the change. 13 | 14 | 15 | 16 | The CCC visual context object. 17 | 18 | 19 | 20 | 21 | An array with the resulting selected datums. 22 | 23 | 24 | 25 | 26 | An array with the datums whose selected state has changed since 27 | the last time that the action was handled. 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /doc/model/varia/functions/slidingWindowFuns.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The function to select which data to remove given an array of datums. 11 | 12 | The default function removes datums whose values places them outside the sliding window interval. 13 | 14 | 15 | 16 | An array of datums to evaluate. 17 | 18 | 19 | 20 | 21 | An array with the datums to remove. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/model/varia/functions/standardAction.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | A standard action function that is called 11 | when a certain event happens on a visual element. 12 | 13 | 14 | 15 | The CCC visual context object. 16 | 17 | 18 | 19 | 20 | The scene associated with the visual item. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/model/varia/functions/tooltipFormatter.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | The function type of a tooltip formatter. 11 | 12 | Whether the tooltip format is HTML or plain text must 13 | be known by the formatter. 14 | 15 | 16 | 17 | The CCC visual context object. 18 | 19 | 20 | 21 | 22 | The scene whose tooltip is to be built. 23 | 24 | Use the data contained in the scene object to 25 | build the tooltip. 26 | 27 | 28 | 29 | 30 | The tooltip text. 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /examples/fiddles/bar/targetLine/demo.details: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bar chart with overlaid target lines 3 | description: Shows how to use plot2 and a series having target values 4 | to add "target lines" to a bar chart. 5 | wrap: b 6 | ... 7 | -------------------------------------------------------------------------------- /examples/fiddles/bar/targetLine/demo.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/fiddles/draw/horizRefLineAtHighestTick/demo.details: -------------------------------------------------------------------------------- 1 | --- 2 | name: Draw an horizontal reference line at the position of the highest Y tick 3 | description: Shows how to conditionally color a continuous Y axis' gridlines 4 | and to specially place its tick labels. 5 | wrap: b 6 | ... 7 | -------------------------------------------------------------------------------- /examples/fiddles/draw/horizRefLineAtHighestTick/demo.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/fiddles/draw/horizRefLineAtMaxValue/demo.details: -------------------------------------------------------------------------------- 1 | --- 2 | name: Draw an horizontal reference line at the position of the maximum Y domain value 3 | description: Shows how to use a protovis pv.Rule mark to 4 | add a reference line at a position given by a continuous axis's scale. 5 | wrap: b 6 | ... 7 | -------------------------------------------------------------------------------- /examples/fiddles/draw/horizRefLineAtMaxValue/demo.html: -------------------------------------------------------------------------------- 1 |

Try hiding the series "Paris", 2 | and watch the reference line follow the maximum visible value. 3 |

4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/fiddles/draw/vertiBandAlternate/demo.details: -------------------------------------------------------------------------------- 1 | --- 2 | name: Draws rectangles covering the bands of alternate categories. 3 | description: Shows how to use a protovis pv.Panel mark to 4 | paint alternate category bands. Shows how to obtain the width of 5 | the categorical band of a discrete axis' scale. 6 | wrap: b 7 | ... 8 | -------------------------------------------------------------------------------- /examples/fiddles/draw/vertiBandAlternate/demo.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/fiddles/draw/vertiBandFixed/demo.details: -------------------------------------------------------------------------------- 1 | --- 2 | name: Draws a rectangle covering the band of a certain fixed category. 3 | description: Shows how a protovis pv.Panel can be added to a plot 4 | to highlight a certain category. Shows how to obtain the width of 5 | the categorical band of a discrete axis' scale. 6 | wrap: b 7 | ... 8 | -------------------------------------------------------------------------------- /examples/fiddles/index.md: -------------------------------------------------------------------------------- 1 | # Fiddle Index 2 | 3 | Here you'll find links to CCC's JS fiddles, categorized by area of customization. 4 | 5 | ## Bar Chart 6 | 7 | * [With overlaid target lines](http://jsfiddle.net/gh/get/library/pure/webdetails/ccc/tree/examples/fiddles/bar/targetLine) 8 | 9 | ## Adding Reference Lines 10 | 11 | * [Horizontal, at highest Y tick](http://jsfiddle.net/gh/get/library/pure/webdetails/ccc/tree/examples/fiddles/draw/horizRefLineAtHighestTick) 12 | * [Horizontal, at maximum Y domain value](http://jsfiddle.net/gh/get/library/pure/webdetails/ccc/tree/examples/fiddles/draw/horizRefLineAtMaxValue) 13 | 14 | ## Painting Categorical Bands 15 | 16 | * [Vertical, at a fixed category](http://jsfiddle.net/gh/get/library/pure/webdetails/ccc/tree/examples/fiddles/draw/vertiBandFixed) 17 | * [Vertical, at alternate categories](http://jsfiddle.net/gh/get/library/pure/webdetails/ccc/tree/examples/fiddles/draw/vertiBandAlternate) 18 | -------------------------------------------------------------------------------- /scripts/build-scripts-config.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | my $format = " '#value#'"; 7 | 8 | ##print STDERR "replacing tokens in " . $ARGV[0]; 9 | ##print STDERR " with contents of " . $ARGV[1] . "\n"; 10 | 11 | open(ITEMLIST, $ARGV[0]) or die("Listing file not found"); 12 | 13 | my $contents = ""; 14 | while() { 15 | my $item = $_; 16 | $item =~ s/^\s*|\s*$//g; 17 | if ($item ne "") { 18 | my $row = $format; 19 | $row =~ s/#value#/$item/g; 20 | if ($contents ne "") { 21 | $contents = "$contents,\n$row"; 22 | } else { 23 | $contents = "[\n$row"; 24 | } 25 | } 26 | } 27 | close ITEMLIST; 28 | if($contents ne "") { 29 | $contents = "$contents\n]"; 30 | } 31 | 32 | print $contents; -------------------------------------------------------------------------------- /scripts/build-scripts-config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ****************************************************************************** 3 | # 4 | # Pentaho 5 | # 6 | # Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 7 | # 8 | # Use of this software is governed by the Business Source License included 9 | # in the LICENSE.TXT file. 10 | # 11 | # Change Date: 2029-07-20 12 | # ****************************************************************************** 13 | # Run script from script dir 14 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";cd $DIR; 15 | 16 | mkdir -p ../target/bundle-files 17 | 18 | perl ./build-scripts-config.pl def-bundle-files.txt > ../target/bundle-files/def-bundle-files.js; 19 | perl ./build-scripts-config.pl cdo-bundle-files.txt > ../target/bundle-files/cdo-bundle-files.js; 20 | perl ./build-scripts-config.pl ccc-bundle-files.txt > ../target/bundle-files/ccc-bundle-files.js; 21 | -------------------------------------------------------------------------------- /scripts/cdo-bundle-files.txt: -------------------------------------------------------------------------------- 1 | cdo/_data 2 | cdo/meta/dimensionType 3 | cdo/meta/complexType 4 | cdo/meta/complexTypeProject 5 | cdo/atom 6 | cdo/complex 7 | cdo/complexView 8 | cdo/datum 9 | cdo/dimension 10 | cdo/data/data 11 | cdo/data/data.selected 12 | cdo/data/data.operations 13 | cdo/data/data-filtered 14 | cdo/data/data-grouped 15 | cdo/data/data.compat 16 | 17 | cdo/oper/abstract-oper 18 | cdo/oper/grouping-oper 19 | cdo/oper/groupingSpec 20 | cdo/oper/linear-interp-oper 21 | cdo/oper/linear-interp-seriesState 22 | cdo/oper/zero-interp-oper 23 | cdo/oper/zero-interp-seriesState 24 | 25 | cdo/translation/abstract-transl 26 | cdo/translation/abstract-matrix-transl 27 | cdo/translation/crosstab-transl 28 | cdo/translation/relational-transl 29 | 30 | cdo/format/number-formatStyle 31 | cdo/format/number-format 32 | cdo/format/date-format 33 | cdo/format/custom-format 34 | cdo/format/formatProvider 35 | cdo/format/format-language 36 | -------------------------------------------------------------------------------- /scripts/def-bundle-files.txt: -------------------------------------------------------------------------------- 1 | def/shim 2 | def/prologue 3 | def/object 4 | def/info 5 | def/bit 6 | def/fun 7 | def/number 8 | def/array 9 | def/string 10 | def/conversion 11 | def/predicate 12 | def/error 13 | def/log 14 | def/private 15 | def/varia 16 | def/qualifiedName 17 | def/namespace 18 | def/describe 19 | def/mixin 20 | def/create 21 | def/attached 22 | def/configure 23 | def/type/inherit 24 | def/type/overrides 25 | def/type/methods 26 | def/type/MetaType 27 | def/type/Object 28 | def/type/type 29 | def/type/enum 30 | def/type/classify 31 | def/type/fields 32 | def/id 33 | def/collection/Set 34 | def/collection/Map 35 | def/collection/OrderedMap 36 | def/EventSource 37 | def/html 38 | def/css 39 | def/query 40 | def/textTable 41 | def/math 42 | def/epilogue 43 | -------------------------------------------------------------------------------- /scripts/generateJsDocs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ****************************************************************************** 3 | # 4 | # Pentaho 5 | # 6 | # Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 7 | # 8 | # Use of this software is governed by the Business Source License included 9 | # in the LICENSE.TXT file. 10 | # 11 | # Change Date: 2029-07-20 12 | # ****************************************************************************** 13 | 14 | # Generate JSDocs 15 | # Invoke XSLT: pvc.options.xml -> pvc.options.xml.js 16 | 17 | # Run script from base dir 18 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";cd $DIR; cd .. 19 | 20 | if [ ! -f "target/Saxon-HE-9.4.jar" ]; then 21 | echo "Please run mvn clean install first to download Saxon utility" 22 | exit 23 | fi 24 | 25 | java -jar target/Saxon-HE-9.4.jar -xsl:doc/gen/com2jsdoc.xsl -s:doc/model/pvc.options.xml -o:doc/model/pvc.options.xml.js relativePath=../model/ 26 | 27 | rm -rf target/jsdoc; 28 | 29 | 30 | if [ ! -f "target/jsdoc-2.4Custom.zip" ]; then 31 | echo "Please run mvn clean install first to download jsdoc utility" 32 | else 33 | if [ ! -d "target/jsdoc-2.4Custom.zip" ]; then 34 | unzip -oq target/jsdoc-2.4Custom.zip -d target 35 | fi 36 | JSDOCDIR="target/jsdoc_toolkit-2.4.0/" 37 | java -jar ${JSDOCDIR}jsrun.jar ${JSDOCDIR}app/run.js --private --verbose --recurse doc/model/ -t=${JSDOCDIR}templates/jsdoc -d=target/jsdoc 38 | fi 39 | 40 | -------------------------------------------------------------------------------- /scripts/generateSummary.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ****************************************************************************** 3 | # 4 | # Pentaho 5 | # 6 | # Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 7 | # 8 | # Use of this software is governed by the Business Source License included 9 | # in the LICENSE.TXT file. 10 | # 11 | # Change Date: 2029-07-20 12 | # ****************************************************************************** 13 | 14 | # Run script from base dir 15 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";cd $DIR; cd .. 16 | 17 | rm target/summary/*.html; 18 | 19 | # -- Invoke XSLT 20 | java -jar target/Saxon-HE-9.4.jar -xsl:doc/gen/summary/com2html-summary.xsl -s:doc/model/pvc.options.xml helpBaseUrl=jsdoc/symbols/ outBaseUrl=target/summary/ 21 | -------------------------------------------------------------------------------- /scripts/repl-scripts.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | # USAGE: 3 | # for file in *.txt; do ./repl-scripts.pl $file list.input > $file.out;done; 4 | 5 | use strict; 6 | use warnings; 7 | 8 | my $format = " "; 9 | my $placeholderBeg = ""; 10 | my $placeholderEnd = ""; 11 | 12 | ##print STDERR "replacing tokens in " . $ARGV[0]; 13 | ##print STDERR " with contents of " . $ARGV[1] . "\n"; 14 | 15 | open(ITEMLIST, $ARGV[1]) or die("Listing file not found"); 16 | 17 | my $contents = ""; 18 | while() { 19 | my $item = $_; 20 | $item =~ s/^\s*|\s*$//g; 21 | if ($item ne "") { 22 | my $row = $format; 23 | $row =~ s/#value#/$item/g; 24 | $contents = "$contents\n$row"; 25 | } 26 | } 27 | close ITEMLIST; 28 | 29 | ##print STDERR "$contents"; 30 | 31 | open(SRC, $ARGV[0]) or die("base file not found"); 32 | 33 | undef $/; 34 | 35 | my $filecontent = ; 36 | close SRC; 37 | $/ = "\n"; #Restore normal read line by line behaviour 38 | 39 | $filecontent =~ s/^(\s*$placeholderBeg)(.*?)(\s*$placeholderEnd)/$1$contents$3/smg; 40 | 41 | print $filecontent; -------------------------------------------------------------------------------- /scripts/repl-scripts.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ****************************************************************************** 3 | # 4 | # Pentaho 5 | # 6 | # Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 7 | # 8 | # Use of this software is governed by the Business Source License included 9 | # in the LICENSE.TXT file. 10 | # 11 | # Change Date: 2029-07-20 12 | # ****************************************************************************** 13 | 14 | # Run script from base dir 15 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";cd $DIR; cd .. 16 | 17 | if [ -z "$BASH_VERSION" ] 18 | then 19 | exec bash "$0" 20 | fi 21 | 22 | # combine def, cdo and ccc files 23 | cat scripts/def-bundle-files.txt scripts/cdo-bundle-files.txt scripts/ccc-bundle-files.txt > all-bundle-files.txt 24 | 25 | # create one .out file per html 26 | for file in examples/*.html; do perl ./scripts/repl-scripts.pl $file all-bundle-files.txt > $file.out; done; 27 | 28 | # move .out files into .html files 29 | for file in examples/*.out; do mv $file ${file/%.html.out/.html}; done; 30 | 31 | rm all-bundle-files.txt -------------------------------------------------------------------------------- /site/README.md: -------------------------------------------------------------------------------- 1 | # Community Charting Components 2 | 3 | Content for generating the Github site is located in this directory. 4 | 5 | The deployed site can be seen here: [CCC](http://webdetails.github.io/ccc/). 6 | -------------------------------------------------------------------------------- /site/_generate.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | my $resDir = $ARGV[1]; 7 | ##print STDERR "replacing tokens in " . $ARGV[0]; 8 | ##print STDERR " with contents of " . $ARGV[1] . "\n"; 9 | ##print STDERR $ARGV[0]; 10 | open(TEMPL, $ARGV[0]) or die("Template file not found"); 11 | 12 | my $contents = ""; 13 | while() { 14 | my $item = $_; 15 | 16 | # supports only 1 resource per line... 17 | if($item =~ m//) { 18 | my $resourceFile = "$resDir/$1"; 19 | 20 | open(RES, $resourceFile) or die("resource file '$resourceFile' not found"); 21 | undef $/; 22 | my $resourceText = ; 23 | close RES; 24 | $/ = "\n"; # Restore normal read line by line behaviour 25 | 26 | # Replace tag with resource text 27 | $item =~ s//$resourceText/g; 28 | } 29 | 30 | $contents = "$contents$item"; 31 | } 32 | close TEMPL; 33 | 34 | ##print STDERR "$contents"; 35 | 36 | print $contents; -------------------------------------------------------------------------------- /site/resources/cccBarExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BarChart({ 13 | canvas: 'cccBarExample1', 14 | width: 600, 15 | height: 400, 16 | orientation: 'horizontal', 17 | 18 | // Data source 19 | crosstabMode: false, 20 | 21 | // Main plot 22 | valuesVisible: false, 23 | axisLabel_font: 'normal 10px "Open Sans"', 24 | 25 | bar_fillStyle: '#005CA7', 26 | // 'linear-gradient(90deg, green, blue)' 27 | // 'linear-gradient(to bottom left, red, yellow 20%, green, blue)' 28 | // 'radial-gradient(red, yellow 40%, red)' 29 | // 'linear-gradient(red, rgb(0,0,255))' 30 | 31 | // Chart/Interaction 32 | animate: false, 33 | selectable: true, 34 | hoverable: true 35 | }) 36 | .setData(relational_03) 37 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBarExample12.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BarChart({ 13 | canvas: 'cccBarExample12', 14 | width: 600, 15 | height: 400, 16 | orientation: 'horizontal', 17 | 18 | // Data source 19 | isMultiValued: true, 20 | 21 | // Data 22 | ignoreNulls: false, 23 | dimensionGroups: { 24 | category: {comparer: def.ascending} 25 | }, 26 | 27 | // Visual roles 28 | multiChartIndexes: [0, 1], 29 | 30 | // Main plot 31 | stacked: true, 32 | axisLabel_font: 'normal 9px "Open Sans"', 33 | 34 | // Panels 35 | title: "Small Multiple Bar charts", 36 | titleFont: 'lighter 20px "Open Sans"', 37 | smallTitleFont: 'lighter 14px "Open Sans"', 38 | 39 | legend: true, 40 | legendFont: 'normal 11px "Open Sans"', 41 | 42 | // Chart/Interaction 43 | animate: false, 44 | selectable: true, 45 | hoverable: true, 46 | 47 | // Color axes 48 | colors: [ 49 | '#005CA7', '#FFC20F', '#333333' 50 | ] 51 | }) 52 | .setData(testHeatGridComp) 53 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBarExample14.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BarChart({ 13 | canvas: "cccBarExample14", 14 | width: 600, 15 | height: 500, 16 | 17 | // Data Source 18 | readers: ["region", "brand", "otherGains", "sales"], 19 | crosstabMode: false, 20 | 21 | // Plots 22 | plots: [ 23 | // Main plot - bars 24 | { 25 | name: 'main', 26 | stacked: true, 27 | visualRoles: { 28 | category: "brand", 29 | series: "valueRole.dim", 30 | value: "sales, otherGains" 31 | } 32 | } 33 | ], 34 | 35 | // Color axes 36 | colors: [ 37 | '#005CA7', '#FFC20F', '#333333' 38 | ], 39 | 40 | // Panels 41 | legend: true, 42 | legendFont: 'normal 11px "Open Sans"', 43 | 44 | // Chart/Interaction 45 | animate: false, 46 | selectable: true, 47 | hoverable: true 48 | }) 49 | .setData(relational_04d) 50 | .render(); 51 | -------------------------------------------------------------------------------- /site/resources/cccBarExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BarChart({ 13 | canvas: 'cccBarExample2', 14 | width: 600, 15 | height: 400, 16 | orientation: 'horizontal', 17 | 18 | // Cartesian axes 19 | axisGrid: true, 20 | axisGrid_strokeStyle: '#F7F8F9', 21 | axisLabel_font: 'normal 10px "Open Sans"', 22 | 23 | // Panels 24 | title: "Rich Bar chart", 25 | titlePosition: 'left', 26 | titleSize: {height: '100%'}, 27 | titleMargins: 10, 28 | titleFont: 'lighter 20px "Open Sans"', 29 | 30 | legend: true, 31 | legendPosition: 'right', 32 | legendFont: 'normal 11px "Open Sans"', 33 | 34 | // Chart/Interaction 35 | animate: false, 36 | selectable: true, 37 | hoverable: true, 38 | 39 | // Color axes 40 | colors: [ 41 | '#005CA7', '#FFC20F', '#333333' 42 | ] 43 | }) 44 | .setData(relational_01, {crosstabMode: false}) 45 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBarExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BarChart({ 13 | canvas: 'cccBarExample3', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | valuesVisible: false, 22 | 23 | // Cartesian axes 24 | axisGrid: true, 25 | axisOffset: 0.05, 26 | axisGrid_strokeStyle: '#F7F8F9', 27 | axisLabel_font: 'normal 10px "Open Sans"', 28 | baseAxisLabel_textAngle: -Math.PI/3, 29 | baseAxisLabel_textAlign: 'right', 30 | baseAxisLabel_textBaseline: 'top', 31 | 32 | // Panels 33 | legend: true, 34 | legendFont: 'normal 11px "Open Sans"', 35 | 36 | // Chart/Interaction 37 | animate: true, 38 | selectable: true, 39 | hoverable: true, 40 | tooltipClassName: 'light', 41 | tooltipOpacity: 1, 42 | 43 | // Color axes 44 | colors: [ 45 | '#005CA7', '#FFC20F', '#333333' 46 | ] 47 | }) 48 | .setData(relational_01_neg) 49 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBarExample6.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BarChart({ 13 | canvas: 'cccBarExample6', 14 | width: 600, 15 | height: 400, 16 | orientation: 'horizontal', 17 | 18 | // Data source 19 | crosstabMode: false, 20 | 21 | // Main plot 22 | stacked: true, 23 | valuesVisible: true, 24 | valuesMask: '{series}', 25 | valuesFont: 'normal 11px "Open Sans"', 26 | valuesOverflow: 'trim', 27 | valuesOptimizeLegibility: true, 28 | 29 | // Cartesian axes 30 | axisLabel_font: 'normal 10px "Open Sans"', 31 | orthoAxisLabelSpacingMin: 6, 32 | 33 | // Chart/Interaction 34 | animate: false, 35 | selectable: true, 36 | hoverable: true, 37 | tooltipClassName: 'light', 38 | tooltipOpacity: 1, 39 | 40 | // Color axes 41 | colors: [ 42 | '#005CA7', '#FFC20F', '#333333' 43 | ] 44 | }) 45 | .setData(relational_01) 46 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBoxExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BoxplotChart({ 13 | canvas: 'cccBoxExample1', 14 | width: 600, 15 | height: 400, 16 | 17 | // Panels 18 | title: "Minimal Boxplot Chart", 19 | titleFont: 'lighter 20px "Open Sans"', 20 | 21 | // Cartesian axes 22 | axisLabel_font: 'normal 10px "Open Sans"', 23 | 24 | // Color axes 25 | colors: ['#005CA7'] 26 | }) 27 | .setData(boxplotData_01) 28 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBoxExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BoxplotChart({ 13 | canvas: 'cccBoxExample2', 14 | width: 600, 15 | height: 400, 16 | orientation: 'horizontal', 17 | 18 | // Main plot 19 | boxSizeMax: 15, 20 | boxBar_fillStyle: '#FFC20F', 21 | boxRuleMedian_lineWidth: 3, 22 | boxRuleMin_strokeStyle: '#005CA7', 23 | boxRuleMax_strokeStyle: '#005CA7', 24 | boxRuleWhisker_strokeDasharray: '- ', 25 | 26 | // Cartesian axes 27 | baseAxisGrid: true, 28 | axisGrid_strokeStyle: '#F7F8F9', 29 | panelSizeRatio: 0.8, 30 | axisLabel_font: 'normal 10px "Open Sans"', 31 | 32 | // Chart/Interaction 33 | selectable: true, 34 | hoverable: true 35 | }) 36 | .setData(boxplotData_01) 37 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBoxExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BoxplotChart({ 13 | canvas: 'cccBoxExample3', 14 | width: 600, 15 | height: 400, 16 | 17 | // Main plot 18 | boxSizeMax: 20, 19 | boxRuleWhisker_strokeDasharray: '- ', 20 | 21 | // Second plot 22 | plot2: true, 23 | plot2LinesVisible: true, 24 | plot2Line_shape: 'triangle', 25 | plot2DotsVisible: true, 26 | plots: [ 27 | // minimum, maximum, lowerQuartil, upperQuartil, median 28 | //{name: 'plot2', visualRoles: {value: 'maximum'}} 29 | ], 30 | 31 | // Cartesian axes 32 | baseAxisGrid: true, 33 | axisGrid_strokeStyle: '#F7F8F9', 34 | axisLabel_font: 'normal 10px "Open Sans"', 35 | 36 | // Chart/Interaction 37 | animate: false, 38 | selectable: true, 39 | hoverable: true, 40 | 41 | // Color axes 42 | colors: ['#005CA7'] 43 | }) 44 | .setData(boxplotData_03) 45 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBulletExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BulletChart({ 13 | canvas: 'cccBulletExample1', 14 | width: 600, 15 | height: 400, 16 | orientation: 'vertical', 17 | 18 | // Main plot 19 | bulletSize: 25, 20 | bulletSpacing: 150, 21 | bulletMargin: 30, 22 | 23 | bulletMeasure_fillStyle: '#005CA7', 24 | 25 | bulletTitle: "Fixed Title", 26 | bulletTitlePosition: 'left', 27 | bulletTitle_textStyle: '#333333', 28 | bulletTitle_font: 'lighter 16px "Open Sans"', 29 | 30 | bulletSubtitle: "Fixed Sub-title", 31 | bulletSubtitle_font: 'normal 10px "Open Sans"', 32 | 33 | bulletMeasures: [50], 34 | bulletRuleLabel_font: 'normal 10px "Open Sans"', 35 | 36 | bulletMarkers: [90], 37 | bulletMarker_shape: 'circle', 38 | 39 | bulletRanges: [30, 80, 100] 40 | }) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBulletExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BulletChart({ 13 | canvas: 'cccBulletExample2', 14 | width: 600, 15 | height: 230, 16 | orientation: 'horizontal', 17 | 18 | // Main plot 19 | bulletSize: 25, 20 | bulletSpacing: 50, 21 | bulletMargin: 100, 22 | bulletTitlePosition: 'top', 23 | bulletTitle_textStyle: '#333333', 24 | bulletTitle_font: 'normal 15px "Open Sans"', 25 | bulletMeasure_fillStyle: '#005CA7', 26 | bulletRuleLabel_font: 'normal 10px "Open Sans"', 27 | 28 | bulletTitle: "Fixed Title", 29 | bulletSubtitle: "Fixed Sub-title", 30 | bulletSubtitle_font: 'normal 10px "Open Sans"', 31 | bulletRanges: [30, 80, 100], 32 | 33 | // Panels 34 | title: "Value only", 35 | titleFont: 'lighter 20px "Open Sans"', 36 | titleMargins: '0 0 15 0', 37 | titlePosition: 'top', 38 | titleSize: 40 39 | }) 40 | .setData(bullet_valueOnly) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBulletExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BulletChart({ 13 | canvas: 'cccBulletExample3', 14 | width: 600, 15 | height: 280, 16 | orientation: 'horizontal', 17 | 18 | // Main plot 19 | bulletSize: 25, 20 | bulletSpacing: 60, 21 | bulletMargin: 100, 22 | bulletTitlePosition: 'bottom', 23 | bulletTitle_textStyle: '#333333', 24 | bulletTitle_font: 'normal 15px "Open Sans"', 25 | bulletMeasure_fillStyle: '#005CA7', 26 | bulletRuleLabel_font: 'normal 10px "Open Sans"', 27 | 28 | bulletSubtitle: "Fixed Sub-title", 29 | bulletSubtitle_font: 'normal 10px "Open Sans"', 30 | bulletRanges: [200, 500, 1000] 31 | }) 32 | .setData(bullet_NameValue) 33 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBulletExample4.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BulletChart({ 13 | canvas: 'cccBulletExample4', 14 | width: 600, 15 | height: 250, 16 | orientation: 'horizontal', 17 | 18 | // Main plot 19 | bulletSize: 25, 20 | bulletSpacing: 50, 21 | bulletMargin: 100, 22 | bulletTitle_textStyle: '#333333', 23 | bulletTitle_font: 'normal 15px "Open Sans"', 24 | bulletMeasure_fillStyle: '#005CA7', 25 | bulletRuleLabel_font: 'normal 10px "Open Sans"', 26 | 27 | bulletSubtitle: "Fixed Sub-title", 28 | bulletSubtitle_font: 'normal 10px "Open Sans"', 29 | bulletRanges: [200, 500, 1000] 30 | }) 31 | .setData(bullet_NameValueMarker) 32 | .render(); -------------------------------------------------------------------------------- /site/resources/cccBulletExample5.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.BulletChart({ 13 | canvas: 'cccBulletExample5', 14 | width: 600, 15 | height: 400, 16 | orientation: 'vertical', 17 | 18 | // Main plot 19 | bulletSize: 25, 20 | bulletSpacing: 80, 21 | bulletMargin: 30, 22 | bulletTitlePosition: 'left', 23 | bulletTitle_textStyle: '#333333', 24 | bulletTitle_font: 'normal 15px "Open Sans"', 25 | bulletMeasure_fillStyle: '#005CA7', 26 | bulletRuleLabel_font: 'normal 10px "Open Sans"', 27 | bulletSubtitle_font: 'normal 10px "Open Sans"' 28 | }) 29 | .setData(bullet_NameDescValueMarkerRanges) 30 | .render(); -------------------------------------------------------------------------------- /site/resources/cccDotExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.DotChart({ 13 | canvas: 'cccDotExample1', 14 | width: 600, 15 | height: 400, 16 | orientation: 'horizontal', 17 | 18 | // Data source 19 | crosstabMode: false, 20 | 21 | // Main plot 22 | valuesVisible: true, 23 | valuesFont: 'lighter 10px "Open Sans"', 24 | axisLabel_font: 'normal 9px "Open Sans"', 25 | 26 | // Panels 27 | title: "Simple Dot Chart", 28 | titleFont: 'lighter 20px "Open Sans"', 29 | titlePosition: 'bottom', 30 | titleMargins: '10 0', 31 | 32 | // Chart/Interaction 33 | animate: false, 34 | selectable: true, 35 | 36 | // Color axes 37 | colors: ['#005CA7'] 38 | }) 39 | .setData(relational_03) 40 | .render(); -------------------------------------------------------------------------------- /site/resources/cccExampleFooter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /site/resources/cccHGExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.HeatGridChart({ 13 | canvas: 'cccHGExample1', 14 | width: 600, 15 | height: 350, 16 | 17 | // Color axes 18 | colorNormByCategory: false, 19 | colors: ['#005CA7', '#fff', '#FFC20F'], 20 | colorMissing: '#333333', 21 | 22 | // Panels 23 | title: "Global Colors Heat-grid", 24 | titleFont: 'lighter 20px "Open Sans"', 25 | titleMargins: '0 0 5 0', 26 | 27 | // Cartesian axes 28 | axisLabel_font: 'normal 10px "Open Sans"', 29 | axisRule_strokeStyle: '#FFFFFF', 30 | 31 | // Main Plot 32 | valuesFont: 'lighter 11px "Open Sans"', 33 | valuesOptimizeLegibility: true 34 | }) 35 | .setData(testHeatGrid) 36 | .render(); -------------------------------------------------------------------------------- /site/resources/cccHGExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.HeatGridChart({ 13 | canvas: 'cccHGExample2', 14 | width: 600, 15 | height: 350, 16 | 17 | // Color axes 18 | colors: ['#005CA7', '#fff', '#FFC20F'], 19 | colorMissing: '#333333', 20 | 21 | // Main plot 22 | valuesAnchor: 'right', 23 | 24 | // Panels 25 | title: "Colors By Column Heat-grid", 26 | titleFont: 'lighter 20px "Open Sans"', 27 | titleMargins: '0 0 5 0', 28 | 29 | // Cartesian axes 30 | axisLabel_font: 'normal 10px "Open Sans"', 31 | axisRule_strokeStyle: '#FFFFFF', 32 | 33 | // Main Plot 34 | valuesFont: 'lighter 11px "Open Sans"', 35 | valuesOptimizeLegibility: true 36 | }) 37 | .setData(testHeatGrid) 38 | .render(); -------------------------------------------------------------------------------- /site/resources/cccHGExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.HeatGridChart({ 13 | canvas: 'cccHGExample3', 14 | width: 600, 15 | height: 350, 16 | orientation: 'horizontal', 17 | 18 | // Color axes 19 | colors: ['#005CA7', '#FFFFFF', '#FFC20F'], 20 | colorMissing: '#333333', 21 | 22 | // Panels 23 | title: "Horizontal Colors By Column Heat-grid", 24 | titleFont: 'lighter 20px "Open Sans"', 25 | titleMargins: '0 0 5 0', 26 | 27 | // Main Plot 28 | valuesFont: 'lighter 11px "Open Sans"', 29 | valuesOptimizeLegibility: true, 30 | 31 | // Cartesian axes 32 | axisLabel_font: 'normal 10px "Open Sans"', 33 | axisRule_strokeStyle: '#FFFFFF' 34 | }) 35 | .setData(testHeatGrid) 36 | .render(); -------------------------------------------------------------------------------- /site/resources/cccHGExample4.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.HeatGridChart({ 13 | canvas: 'cccHGExample4', 14 | width: 600, 15 | height: 400, 16 | 17 | // Main plot 18 | valuesVisible: false, 19 | 20 | // Color axes 21 | colors: ['#005CA7', '#FFFFFF', '#FFC20F'], 22 | colorMissing: '#333333', 23 | 24 | // Panels 25 | title: "Interactive Heat-grid", 26 | titleFont: 'lighter 20px "Open Sans"', 27 | titleMargins: '0 0 5 0', 28 | 29 | // Cartesian axes 30 | axisLabel_font: 'normal 10px "Open Sans"', 31 | axisRule_strokeStyle: '#FFFFFF', 32 | 33 | // Chart/Interaction 34 | selectable: true, 35 | hoverable: true, 36 | 37 | clickable: true, 38 | clickAction: function(scene){ 39 | alert('series = "' + scene.getSeries() + 40 | '", category = ' + scene.getCategory() + 41 | '", color = ' + scene.getColor()); 42 | } 43 | }) 44 | .setData(testHeatGrid) 45 | .render(); -------------------------------------------------------------------------------- /site/resources/cccMetricDotExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.MetricLineChart({ 13 | canvas: 'cccMetricDotExample1', 14 | width: 600, 15 | height: 350, 16 | 17 | // Panels 18 | legend: false, 19 | 20 | // Main plot 21 | dotsVisible: true, 22 | 23 | // Cartesian axes 24 | axisGrid: true, 25 | axisOriginIsZero: true, 26 | axisGrid_strokeStyle: '#F7F8F9', 27 | axisLabel_font: 'normal 8px "Open Sans"', 28 | 29 | // Chart/Interaction 30 | animate: false, 31 | selectable: true, 32 | hoverable: true, 33 | 34 | // Color axes 35 | colors: ['#005CA7'] 36 | }) 37 | .setData(testLDot) 38 | .render(); -------------------------------------------------------------------------------- /site/resources/cccMetricDotExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.MetricLineChart({ 13 | canvas: 'cccMetricDotExample2', 14 | width: 600, 15 | height: 350, 16 | 17 | // Main plot 18 | dotsVisible: true, 19 | 20 | // Cartesian axes 21 | axisGrid: true, 22 | axisOriginIsZero: true, 23 | axisGrid_strokeStyle: '#F7F8F9', 24 | axisLabel_font: 'normal 8px "Open Sans"', 25 | 26 | // Panels 27 | legend: true, 28 | legendAlign: 'right', 29 | legendFont: 'normal 11px "Open Sans"', 30 | 31 | // Chart/Interaction 32 | animate: false, 33 | selectable: true, 34 | hoverable: true, 35 | 36 | // Color axes 37 | colors: ['#005CA7', '#FFC20F'] 38 | }) 39 | .setData(testLDot2) 40 | .render(); -------------------------------------------------------------------------------- /site/resources/cccMetricDotExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.MetricLineChart({ 13 | canvas: 'cccMetricDotExample3', 14 | width: 600, 15 | height: 350, 16 | orientation: 'horizontal', 17 | 18 | // Main plot 19 | line_interpolate: 'cardinal', 20 | 21 | // Cartesian axes 22 | axisGrid: true, 23 | axisOriginIsZero: true, 24 | axisGrid_strokeStyle: '#F7F8F9', 25 | axisLabel_font: 'normal 8px "Open Sans"', 26 | 27 | // Panels 28 | legend: true, 29 | legendAlign: 'right', 30 | legendFont: 'normal 11px "Open Sans"', 31 | 32 | // Chart/Interaction 33 | animate: false, 34 | selectable: true, 35 | hoverable: true, 36 | 37 | // Color axes 38 | colors: ['#005CA7', '#FFC20F'] 39 | }) 40 | .setData(testLDot2) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccMetricDotExample4.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.MetricDotChart({ 13 | canvas: 'cccMetricDotExample4', 14 | width: 600, 15 | height: 400, 16 | 17 | // Cartesian axes 18 | axisGrid: true, 19 | axisOriginIsZero: true, 20 | axisGrid_strokeStyle: '#F7F8F9', 21 | axisLabel_font: 'normal 8px "Open Sans"', 22 | 23 | // Panels 24 | legend: true, 25 | legendAlign: 'right', 26 | legendFont: 'normal 11px "Open Sans"', 27 | 28 | // Chart/Interaction 29 | animate: false, 30 | selectable: true, 31 | hoverable: true, 32 | clickable: true, 33 | clickAction: function(scene) { 34 | alert(scene.format("{series}: ({x},{y})")); 35 | }, 36 | 37 | // Color axes 38 | colors: ['#005CA7', '#FFC20F'] 39 | }) 40 | .setData(testLDot2) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccPieExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.PieChart({ 13 | canvas: 'cccPieExample1', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main Plot 21 | valuesVisible: true, 22 | valuesLabelStyle: 'inside', 23 | valuesMask: "{category}", 24 | valuesOverflow: 'trim', 25 | valuesOptimizeLegibility: true, 26 | valuesFont: 'normal 11px "Open Sans"', 27 | slice_strokeStyle: 'white', 28 | 29 | // Color axes 30 | colors: [ 31 | '#333333', '#777777', '#FFC20F', '#FFE085', 32 | '#005CA7', '#0086F4', '#39A74A', '#63CA73' 33 | ], 34 | 35 | // Chart/Interaction 36 | animate: false, 37 | selectable: true, 38 | hoverable: true 39 | }) 40 | .setData(relational_03_b) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccPieExample4.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.PieChart({ 13 | canvas: 'cccPieExample4', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | valuesVisible: true, 22 | valuesFont: 'lighter 11px "Open Sans"', 23 | explodedSliceRadius: '2%', 24 | slice_innerRadiusEx: '50%', 25 | 26 | // Panels 27 | legend: false, 28 | 29 | // Chart/Interaction 30 | selectable: true, 31 | hoverable: true, 32 | tooltipClassName: 'light', 33 | 34 | // Color axes 35 | colors: [ 36 | '#333333', '#777777', '#FFC20F', '#FFE085', 37 | '#005CA7', '#0086F4', '#39A74A', '#63CA73' 38 | ] 39 | }) 40 | .setData(relational_03_b) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccPieExample5.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | var pie = new pvc.PieChart({ 13 | canvas: 'cccPieExample5', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | isMultiValued: true, 19 | dataMeasuresInColumns: true, 20 | 21 | // Visual roles 22 | visualRoles: {multiChart: 'category3', category: 'category2'}, 23 | 24 | // Main Plot 25 | slice_strokeStyle: 'white', 26 | valuesFont: 'lighter 11px "Open Sans"', 27 | 28 | // Panels 29 | titleFont: 'lighter 20px "Open Sans"', 30 | smallTitleFont: 'normal 14px "Open Sans"', 31 | 32 | legend: true, 33 | legendPosition: 'right', 34 | legendFont: 'normal 11px "Open Sans"', 35 | 36 | // Chart/Interaction 37 | animate: false, 38 | selectable: true, 39 | hoverable: true, 40 | 41 | // Color axes 42 | colors: [ 43 | '#333333', '#FFC20F', '#005CA7' 44 | ] 45 | }) 46 | .setData(steelWheels02) 47 | .render(); -------------------------------------------------------------------------------- /site/resources/cccPieExample6.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.PieChart({ 13 | canvas: 'cccPieExample6', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | valuesVisible: true, 22 | valuesFont: 'lighter 11px "Open Sans"', 23 | explodedSliceRadius: '10%', 24 | slice_offsetRadius: function(scene) { 25 | return scene.isSelected() ? '10%' : 0; 26 | }, 27 | 28 | // Panels 29 | legend: false, 30 | 31 | // Chart/Interaction 32 | selectable: true, 33 | hoverable: true, 34 | 35 | // Color axes 36 | colors: [ 37 | '#333333', '#777777', '#FFC20F', '#FFE085', 38 | '#005CA7', '#0086F4', '#39A74A', '#63CA73' 39 | ] 40 | }) 41 | .setData(relational_03_b) 42 | .render(); -------------------------------------------------------------------------------- /site/resources/cccPieExample7.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.PieChart({ 13 | canvas: 'cccPieExample7', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | readers: ["region", "brand", "quantity", "sales"], 19 | crosstabMode: false, 20 | 21 | // Chart-level visual roles 22 | visualRoles: { 23 | multiChart: "region, valueRole.dim" 24 | }, 25 | 26 | // Plots 27 | plots: [ 28 | // Main plot - pie 29 | { 30 | name: 'main', 31 | visualRoles: { 32 | category: "brand", 33 | value: "sales, quantity" 34 | } 35 | } 36 | ], 37 | 38 | // Chart/Layout 39 | multiChartColumnsMax: 2, 40 | 41 | // Chart/Interaction 42 | animate: false, 43 | selectable: true, 44 | hoverable: true, 45 | 46 | // Color axes 47 | colors: [ 48 | '#333333', '#777777', '#FFC20F', '#FFE085', 49 | '#005CA7', '#0086F4', '#39A74A', '#63CA73' 50 | ] 51 | }) 52 | .setData(relational_04b) 53 | .render(); 54 | -------------------------------------------------------------------------------- /site/resources/cccStackedAreaExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.StackedAreaChart({ 13 | canvas: 'cccStackedAreaExample1', 14 | width: 600, 15 | height: 250, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Cartesian Axes 21 | baseAxisLabel_font: 'normal 10px "Open Sans"', 22 | orthoAxisLabel_font: 'normal 9px "Open Sans"', 23 | 24 | // Panels 25 | title: "Simple Area chart", 26 | titleFont: 'lighter 20px "Open Sans"', 27 | titleMargins: '0 0 5 0', 28 | 29 | // Chart/Interaction 30 | animate: false, 31 | selectable: true, 32 | hoverable: true, 33 | 34 | // Color axes 35 | colors: ['#005CA7', '#FFC20F', '#333333'] 36 | }) 37 | .setData(relational_02) 38 | .render(); -------------------------------------------------------------------------------- /site/resources/cccStackedAreaExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.StackedAreaChart({ 13 | canvas: 'cccStackedAreaExample2', 14 | width: 600, 15 | height: 250, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Data 21 | timeSeries: true, 22 | 23 | // Main plot 24 | linesVisible: true, 25 | dotsVisible: true, 26 | dot_fillStyle: "white", 27 | nullInterpolationMode: 'linear', 28 | 29 | // Cartesian axes 30 | axisGrid: true, 31 | axisGrid_strokeStyle: '#F7F8F9', 32 | axisLabel_font: 'normal 10px "Open Sans"', 33 | 34 | // Panels 35 | title: "Time Series Stacked Area Chart", 36 | titleFont: 'lighter 20px "Open Sans"', 37 | titleMargins: '0 0 5 0', 38 | 39 | legend: true, 40 | legendPosition: 'right', 41 | legendFont: 'normal 11px "Open Sans"', 42 | 43 | // Chart/Interaction 44 | selectable: true, 45 | hoverable: true, 46 | 47 | // Color axes 48 | colors: ['#005CA7', '#FFC20F', '#333333'] 49 | }) 50 | .setData(relational_01) 51 | .render(); -------------------------------------------------------------------------------- /site/resources/cccStackedAreaExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.StackedAreaChart({ 13 | canvas: 'cccStackedAreaExample3', 14 | width: 600, 15 | height: 250, 16 | 17 | // Data 18 | timeSeries: true, 19 | 20 | // Cartesian axes 21 | axisGrid: true, 22 | axisGrid_strokeStyle: 'lightgray', 23 | 24 | // Panels 25 | title: "Huge Dataset Stacked Area Chart", 26 | legend: true 27 | }) 28 | .setData(crosstab_01) 29 | .render(); -------------------------------------------------------------------------------- /site/resources/cccStackedLineExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.StackedLineChart({ 13 | canvas: 'cccStackedLineExample3', 14 | width: 600, 15 | height: 250, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Data 21 | dimensions: { 22 | // A Date, but discrete 23 | category: {valueType: Date, isDiscrete: true} 24 | }, 25 | 26 | // Main plot 27 | nullInterpolationMode: 'linear', 28 | 29 | // Cartesian axes 30 | axisGrid: true, 31 | axisGrid_strokeStyle: '#F7F8F9', 32 | axisLabel_font: 'normal 9px "Open Sans"', 33 | 34 | // Panels 35 | title: "Interpolated Stacked Line Chart", 36 | titleFont: 'lighter 20px "Open Sans"', 37 | titleMargins: '0 0 5 0', 38 | legend: true, 39 | legendFont: 'normal 11px "Open Sans"', 40 | 41 | // Chart/Interaction 42 | selectable: true, 43 | hoverable: true, 44 | 45 | // Color axes 46 | colors: ['#005CA7', '#FFC20F', '#333333'] 47 | }) 48 | .setData(relational_01) 49 | .render(); -------------------------------------------------------------------------------- /site/resources/cccSunburstExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.SunburstChart({ 13 | canvas: 'cccSunburstExample1', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | valuesFont: 'lighter 11px "Open Sans"', 22 | 23 | // Color axes 24 | colors: [ 25 | '#005CA7', '#39A74A', '#FFC20F', '#777777' 26 | ], 27 | 28 | // Chart/Interaction 29 | selectable: true, 30 | hoverable: true 31 | }) 32 | .setData(testSunburstThreeLevel) 33 | .render(); 34 | -------------------------------------------------------------------------------- /site/resources/cccSunburstExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.SunburstChart({ 13 | canvas: 'cccSunburstExample2', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Visual roles 21 | sizeRole: null, 22 | 23 | // Main plot 24 | valuesFont: 'lighter 11px "Open Sans"', 25 | emptySlicesVisible: true, 26 | emptySlicesLabel: "NA", 27 | 28 | // Color axes 29 | colors: [ 30 | '#005CA7', '#39A74A', '#FFC20F', '#777777' 31 | ], 32 | 33 | // Chart/Interaction 34 | selectable: true, 35 | hoverable: true 36 | }) 37 | .setData(testSunburstThreeLevel) 38 | .render(); 39 | -------------------------------------------------------------------------------- /site/resources/cccSunburstExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.SunburstChart({ 13 | canvas: 'cccSunburstExample3', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | valuesFont: 'lighter 11px "Open Sans"', 22 | 23 | // Color axes 24 | colors: [ 25 | '#005CA7', '#39A74A', '#FFC20F', '#777777' 26 | ], 27 | 28 | // Chart/Interaction 29 | selectable: true, 30 | hoverable: true 31 | }) 32 | .setData(testSunburstSingleLevel) 33 | .render(); 34 | -------------------------------------------------------------------------------- /site/resources/cccSunburstExample4.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.SunburstChart({ 13 | canvas: 'cccSunburstExample4', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | multiChartIndexes: 0, 20 | 21 | // Main plot 22 | valuesFont: 'lighter 11px "Open Sans"', 23 | 24 | // Color axes 25 | colors: [ 26 | '#005CA7', '#0086F4', '#FFC20F', '#FFE085', 27 | '#39A74A', '#63CA73', '#333333', '#777777' 28 | ], 29 | 30 | // Chart/Interaction 31 | selectable: true, 32 | hoverable: true 33 | }) 34 | .setData(buildDataset(flare)) 35 | .render(); 36 | -------------------------------------------------------------------------------- /site/resources/cccTreemapExample1.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.TreemapChart({ 13 | canvas: 'cccTreemapExample1', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | rootCategoryLabel: "World", 22 | valuesFont: 'lighter 11px "Open Sans"', 23 | 24 | // Panels 25 | title: "Single-Level", 26 | titleFont: 'lighter 20px "Open Sans"', 27 | 28 | legend: true, 29 | legendFont: 'normal 11px "Open Sans"', 30 | 31 | // Chart/Interaction 32 | selectable: true, 33 | hoverable: true, 34 | 35 | // Color axes 36 | colors: ['#005CA7'] 37 | }) 38 | .setData(testTreemapSingleLevel) 39 | .render(); -------------------------------------------------------------------------------- /site/resources/cccTreemapExample2.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.TreemapChart({ 13 | canvas: 'cccTreemapExample2', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | rootCategoryLabel: "Earth", 22 | valuesFont: 'lighter 11px "Open Sans"', 23 | 24 | // Panels 25 | title: "Three-Levels", 26 | titleFont: 'lighter 20px "Open Sans"', 27 | 28 | legend: true, 29 | legendPosition: 'right', 30 | legendFont: 'normal 11px "Open Sans"', 31 | 32 | // Chart/Interaction 33 | selectable: true, 34 | hoverable: true, 35 | 36 | // Color axes 37 | colors: [ 38 | '#005CA7', '#0086F4', '#FFC20F', '#FFE085', 39 | '#39A74A', '#63CA73', '#333333', '#777777' 40 | ] 41 | }) 42 | .setData(testTreemapThreeLevel) 43 | .render(); -------------------------------------------------------------------------------- /site/resources/cccTreemapExample3.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.TreemapChart({ 13 | canvas: 'cccTreemapExample3', 14 | width: 600, 15 | height: 400, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Main plot 21 | rootCategoryLabel: "Earth", 22 | layoutMode: 'slice-and-dice', 23 | colorMode: 'bySelf', 24 | valuesFont: 'lighter 11px "Open Sans"', 25 | 26 | // Panels 27 | title: "Slice-and-dice Layout And Self-Colored", 28 | titleFont: 'lighter 20px "Open Sans"', 29 | 30 | // Chart/Interaction 31 | selectable: true, 32 | hoverable: true, 33 | 34 | // Color axes 35 | colors: [ 36 | '#005CA7', '#0086F4', '#FFC20F', '#FFE085', 37 | '#39A74A', '#63CA73', '#333333', '#777777' 38 | ] 39 | }) 40 | .setData(testTreemapThreeLevel) 41 | .render(); -------------------------------------------------------------------------------- /site/resources/cccTreemapExample4.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | new pvc.TreemapChart({ 13 | canvas: 'pvcTreemap4', 14 | width: 600, 15 | height: 700, 16 | 17 | // Data source 18 | crosstabMode: false, 19 | 20 | // Visual roles 21 | colorRole: "multiChart, category, category2, category3", 22 | multiChartIndexes: 0, 23 | 24 | // Main plot 25 | rootCategoryLabel: "flare", 26 | valuesOverflow: 'hide', 27 | valuesFont: 'normal 11px "Open Sans"', 28 | 29 | // Panels 30 | title: "Flare Library Modules", 31 | titleFont: 'lighter 20px "Open Sans"', 32 | smallTitleFont: 'lighter italic 14px "Open Sans"', 33 | smallTitleMargins: '10 0 0 0', 34 | 35 | legend: false, 36 | 37 | // Chart/Interaction 38 | selectable: true, 39 | hoverable: true, 40 | 41 | // Color axes 42 | colors: [ 43 | '#005CA7', '#0086F4', '#FFC20F', '#FFE085', 44 | '#39A74A', '#63CA73', '#333333', '#777777' 45 | ] 46 | }) 47 | .setData(buildDataset(flare)) 48 | .render(); -------------------------------------------------------------------------------- /site/root/charts/lib/amd/require.config.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | require.config({ 6 | paths: { 7 | "jquery": "//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min", 8 | "text": "//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.12/text.min", 9 | "css": "//cdnjs.cloudflare.com/ajax/libs/require-css/0.1.10/css.min", 10 | 11 | "ccc": "//webdetails.github.io/ccc/charts/lib/amd" 12 | } 13 | }); 14 | -------------------------------------------------------------------------------- /site/root/charts/lib/pvcExampleUtils.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | .CodeMirror { 6 | text-align: left; 7 | height: auto; 8 | border: 1px solid #dadada; 9 | padding: 10px; 10 | color: #555555; 11 | background: #FFFFFF; 12 | } 13 | 14 | .CodeMirror pre { 15 | font-size: 12px; 16 | line-height: 1.5em; 17 | } 18 | 19 | /* Makes the editor extend to all the initial text height */ 20 | .CodeMirror-scroll { 21 | max-height: none; 22 | min-height: 0; 23 | } 24 | 25 | .CodeMirror-vscrollbar { 26 | overflow-y: scroll; 27 | } 28 | 29 | /* Styles for a custom tipsy look */ 30 | 31 | /* LIGHT */ 32 | .light.tipsy.tipsy-s { 33 | opacity: 1.0; 34 | width: auto; 35 | } 36 | 37 | .light.tipsy .tipsy-arrow{ 38 | display: none; 39 | visibility: hidden; 40 | } 41 | .light.tipsy .tipsy-inner{ 42 | background: #FFFFFF; 43 | box-shadow: 1px 1px 3px #AAAAAA; 44 | border: 1px solid #C6C6C6; 45 | color: #4B5051; 46 | -webkit-border-radius:1px; 47 | -moz-border-radius:1px; 48 | -o-border-radius:1px; 49 | -ms-border-radius:1px; 50 | border-radius:1px; 51 | /*height: 27px;*/ 52 | height:auto; 53 | width: auto; 54 | opacity: 1.0; 55 | } -------------------------------------------------------------------------------- /site/root/charts/lib/pvcSummary.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 | 7 | /* JS highlighting of resume documentation */ 8 | span.js-comment { color: rgb(150, 150, 150); } 9 | 10 | /*span.js-identifier { } */ 11 | span.js-identifier a { text-decoration: none; color: rgb(68,68,68); } 12 | span.js-identifier a:hover { text-decoration: underline; color: rgb(0,102,255); } 13 | 14 | span.js-punctuation { color: rgb(220,0,103); font-weight: bold; } /* #dc0067 PINK */ 15 | span.js-comment span.js-punctuation { color: rgba(220,0,103, 0.5); } 16 | 17 | span.js-string { color: rgb(250,105,20); } /*#fa6914 ORANGE */ 18 | span.js-comment span.js-string { color: rgba(250,105,20, 0.5); } 19 | 20 | span.js-number { color: #8fd400; } /* GREEN #55a028 */ 21 | span.js-boolean { color: #0b99d5; } /* BLUE */ 22 | span.js-null { color: #0b99d5; } 23 | span.js-undefined { color: #0b99d5; } -------------------------------------------------------------------------------- /site/root/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/site/root/favicon.ico -------------------------------------------------------------------------------- /site/root/img/background-selector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/site/root/img/background-selector.png -------------------------------------------------------------------------------- /site/root/img/background-selector.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /site/root/img/copy-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/site/root/img/copy-icon.png -------------------------------------------------------------------------------- /site/root/img/index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webdetails/ccc/a491316b4197cb709ed069153811bc8b749f53a3/site/root/img/index.png -------------------------------------------------------------------------------- /site/root/img/social-facebook.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /site/root/img/social-linkedin.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /site/root/img/social-rss-feed.svg: -------------------------------------------------------------------------------- 1 | 5 | 6 | 8 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /site/root/js/copy.js: -------------------------------------------------------------------------------- 1 | /*! ****************************************************************************** 2 | * 3 | * Pentaho 4 | * 5 | * Copyright (C) 2024 by Hitachi Vantara, LLC : http://www.pentaho.com 6 | * 7 | * Use of this software is governed by the Business Source License included 8 | * in the LICENSE.TXT file. 9 | * 10 | * Change Date: 2029-07-20 11 | ******************************************************************************/ 12 | $(document).ready(function(){ 13 | 14 | $( ".copyClipboard" ).click(function(elem) { 15 | var $tempClipboard = $(""); 16 | $("body").append($tempClipboard); 17 | $tempClipboard.val(elem.target.href).select(); 18 | document.execCommand("copy"); 19 | $tempClipboard.remove(); 20 | }); 21 | 22 | }); 23 | -------------------------------------------------------------------------------- /site/root/pentaho-templates/footer.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

Help us improve this website. Send your feedback to community@hitachivantara.com

5 |
6 |
7 | 17 |
18 |
19 |
--------------------------------------------------------------------------------