Properties

NameTypeDefault
title String Chart title

Sets or gets the jqxChart title.

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'My Title'" :description="'Time Spent in Vigorous Exercise'" :enableAnimations="true"
:source="source" :xAxis="xAxis" :seriesGroups="seriesGroups" :colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the title property.

let title = this.$refs.myChart.title;
description String Description

Sets or gets the jqxChart description.

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'My Description'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the description property.

let description = this.$refs.myChart.description;
source Array | Object []

Sets the chart's data source.

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the source property.

let source = this.$refs.myChart.source;
showBorderLine Boolean true

Determines whether to display the chart's border line.

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :showBorderLine="false"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the showBorderLine property.

let showBorderLine = this.$refs.myChart.showBorderLine;
borderLineColor String #888888

Sets or gets the chart's border line color.

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :borderLineColor="'#111888'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the borderLineColor property.

let borderLineColor = this.$refs.myChart.borderLineColor;
borderLineWidth Number 1

Sets or gets the chart's border line width.

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :borderLineWidth="3"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the borderLineWidth property.

let borderLineWidth = this.$refs.myChart.borderLineWidth;
backgroundColor String #FFFFFF

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :backgroundColor="'#FFFFFF'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the backgroundColor property.

let backgroundColor = this.$refs.myChart.backgroundColor;
backgroundImage String ''

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :backgroundImage="'http://www.jqwidgets.com/jquery-widgets-demo/images/chart_background.jpg'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the backgroundImage property.

let backgroundImage = this.$refs.myChart.backgroundImage;
showLegend Boolean true
Determines whether to show or hide the chart series legend.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :showLegend="true"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>
legendLayout Object {}

Sets the legend's layout. The expected object is with the following fields:

  • "left" - legend's X position.
  • "top" - legend's Y position.
  • "width" - legend's width.
  • "height" - legend's height.
  • "flow" - 'horizontal' or 'vertical'.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :legendLayout="legendLayout"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
legendLayout: { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' },
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the legendLayout property.

let legendLayout = this.$refs.myChart.legendLayout;
padding Object {left: 5, top: 5, right: 5, bottom: 5}

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :padding='{ left: 10, top: 10, right: 10, bottom: 10 }'
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the padding property.

let padding = this.$refs.myChart.padding;
titlePadding Object {left: 2, top: 2, right: 2, bottom: 2}

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :titlePadding='{ left: 10, top: 10, right: 10, bottom: 10 }'
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the titlePadding property.

let titlePadding = this.$refs.myChart.titlePadding;
colorScheme String scheme01

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme03'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the colorScheme property.

let colorScheme = this.$refs.myChart.colorScheme;
greyScale Boolean false

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :greyScale="true"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the greyScale property.

let greyScale = this.$refs.myChart.greyScale;
showToolTips Boolean true

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :showToolTips="false"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the showToolTips property.

let showToolTips = this.$refs.myChart.showToolTips;
toolTipShowDelay Number 500

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :toolTipShowDelay="300"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the toolTipShowDelay property.

let toolTipShowDelay = this.$refs.myChart.toolTipShowDelay;
toolTipHideDelay Number 4000

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :toolTipHideDelay="300"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the toolTipHideDelay property.

let toolTipHideDelay = this.$refs.myChart.toolTipHideDelay;
toolTipMoveDuration Number 300

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :toolTipMoveDuration="200"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the toolTipMoveDuration property.

let toolTipMoveDuration = this.$refs.myChart.toolTipMoveDuration;
drawBefore Function null
function for custom drawing before the title and other chart elements
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :drawBefore="drawBefore"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
drawBefore: function (renderer, rect) {
renderer.rect(rect.x, rect.y, rect.width, rect.height, { fill: 'lightblue' });
}
}
}
</script>
draw Function null
Determines the drawing function of jqxChart. When the property is set, you can override the jqxChart's drawing.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :draw="draw"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
draw: function (renderer, rect) {
// do something
}
}
}
</script>
rtl Boolean false
Sets or gets a value indicating whether the Chart's layout is mirrored.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :rtl="true"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the rtl property.

let rtl = this.$refs.myChart.rtl;
enableCrosshairs Boolean false
Enables or disables the crosshairs lines. The lines are displayed in line and area series when you move over a data point.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :enableCrosshairs="true" :crosshairsDashStyle="'2,2'"
/>
</template>
<script>
import JqxChart from "jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue";
export default {
components: {
JqxChart
},
data: function() {
return {
source: [
{ Day: "Monday", Keith: 5, Erica: 25, George: 15 },
{ Day: "Tuesday", Keith: 25, Erica: 35, George: 45 },
{ Day: "Wednesday", Keith: 32, Erica: 25, George: 25 },
{ Day: "Thursday", Keith: 35, Erica: 25, George: 45 }
],
xAxis: { dataField: "Day", showGridLines: false },
seriesGroups: [
{
type: "line",
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: "Time in minutes" },
series: [
{ dataField: "Keith", displayText: "Keith" },
{ dataField: "Erica", displayText: "Erica" },
{ dataField: "George", displayText: "George" }
]
}
]
};
}
};
</script>

Get the enableCrosshairs property.

let enableCrosshairs = this.$refs.myChart.enableCrosshairs;
crosshairsColor String #888888
Gets or sets the color of the crosshairs lines.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :crosshairsColor="'#ff1888'" :enableCrosshairs="true"
/>
</template>
<script>
import JqxChart from "jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue";
export default {
components: {
JqxChart
},
data: function() {
return {
source: [
{ Day: "Monday", Keith: 5, Erica: 25, George: 15 },
{ Day: "Tuesday", Keith: 25, Erica: 35, George: 45 },
{ Day: "Wednesday", Keith: 32, Erica: 25, George: 25 },
{ Day: "Thursday", Keith: 35, Erica: 25, George: 45 }
],
xAxis: { dataField: "Day", showGridLines: false },
seriesGroups: [
{
type: "line",
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: "Time in minutes", showGridLines: false },
series: [
{ dataField: "Keith", displayText: "Keith" },
{ dataField: "Erica", displayText: "Erica" },
{ dataField: "George", displayText: "George" }
]
}
]
};
}
};
</script>

Get the crosshairsColor property.

let crosshairsColor = this.$refs.myChart.crosshairsColor;
crosshairsDashStyle String 2,2
Gets or sets the dash style of the crosshairs lines. The style is a series of numbers indicating line length followed by space length.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :enableCrosshairs="true" :crosshairsDashStyle="'1,1'"
/>
</template>
<script>
import JqxChart from "jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue";
export default {
components: {
JqxChart
},
data: function() {
return {
source: [
{ Day: "Monday", Keith: 5, Erica: 25, George: 15 },
{ Day: "Tuesday", Keith: 25, Erica: 35, George: 45 },
{ Day: "Wednesday", Keith: 32, Erica: 25, George: 25 },
{ Day: "Thursday", Keith: 35, Erica: 25, George: 45 }
],
xAxis: { dataField: "Day", showGridLines: false },
seriesGroups: [
{
type: "line",
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: "Time in minutes", showGridLines: false },
series: [
{ dataField: "Keith", displayText: "Keith" },
{ dataField: "Erica", displayText: "Erica" },
{ dataField: "George", displayText: "George" }
]
}
]
};
}
};
</script>

Get the crosshairsDashStyle property.

let crosshairsDashStyle = this.$refs.myChart.crosshairsDashStyle;
crosshairsLineWidth Number 1
Gets or sets the width of the crosshairs lines.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :enableCrosshairs="true" :crosshairsDashStyle="'6,2'" :crosshairsLineWidth="2"
/>
</template>
<script>
import JqxChart from "jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue";
export default {
components: {
JqxChart
},
data: function() {
return {
source: [
{ Day: "Monday", Keith: 5, Erica: 25, George: 15 },
{ Day: "Tuesday", Keith: 25, Erica: 35, George: 45 },
{ Day: "Wednesday", Keith: 32, Erica: 25, George: 25 },
{ Day: "Thursday", Keith: 35, Erica: 25, George: 45 }
],
xAxis: { dataField: "Day", showGridLines: false },
seriesGroups: [
{
type: "line",
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: "Time in minutes", showGridLines: false },
series: [
{ dataField: "Keith", displayText: "Keith" },
{ dataField: "Erica", displayText: "Erica" },
{ dataField: "George", displayText: "George" }
]
}
]
};
}
};
</script>

Get the crosshairsLineWidth property.

let crosshairsLineWidth = this.$refs.myChart.crosshairsLineWidth;
columnSeriesOverlap Boolean false

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Columns spacing and padding'"
:description="'Example with two series groups and three series in each group'"
:showLegend="true" :enableAnimations="false"
:source="sampleData" :xAxis="xAxis" :valueAxis="valueAxis"
:columnSeriesOverlap="true"
:seriesGroups="seriesGroups" :colorScheme="'scheme04'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
sampleData: [
{ Position: 0, Serie1: 30, Serie2: 5, Serie3: 25, Serie4: 30, Serie5: 10, Serie6: 5 },
{ Position: 1, Serie1: 25, Serie2: 25, Serie3: 5, Serie4: 20, Serie5: 20, Serie6: 10 },
{ Position: 3, Serie1: 30, Serie2: 5, Serie3: 25, Serie4: 10, Serie5: 20, Serie6: 15 },
{ Position: 6, Serie1: 35, Serie2: 25, Serie3: 45, Serie4: 5, Serie5: 30, Serie6: 20 },
{ Position: 7, Serie1: 5, Serie2: 20, Serie3: 25, Serie4: 20, Serie5: 40, Serie6: 15 },
{ Position: 9, Serie1: 30, Serie2: 10, Serie3: 30, Serie4: 10, Serie5: 5, Serie6: 20 },
{ Position: 10, Serie1: 60, Serie2: 45, Serie3: 10, Serie4: 20, Serie5: 10, Serie6: 15 }
],
xAxis: {
dataField: 'Position'
},
valueAxis: {
unitInterval: 10,
title: { text: 'Value' }
},
seriesGroups: [
{
type: 'column',
series: [
{ dataField: 'Serie1', displayText: 'Serie1' },
{ dataField: 'Serie2', displayText: 'Serie2' },
{ dataField: 'Serie3', displayText: 'Serie3' }
]
},
{
type: 'column',
greyScale: true,
series: [
{ dataField: 'Serie4', displayText: 'Serie4' },
{ dataField: 'Serie5', displayText: 'Serie5' },
{ dataField: 'Serie6', displayText: 'Serie6' }
]
}
]
}
}
}
</script>
enabled Boolean true
Gets or sets whether the chart widget in enabled or disabled state.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :enabled="false"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the enabled property.

let enabled = this.$refs.myChart.enabled;
enableAnimations Boolean true
Determines if the animations are enabled. When you set this property it will turn on or off the animations for all series in all seriesGroups in the chart. You can override this property for individual seriesGroups and series.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="false" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Get the enableAnimations property.

let enableAnimations = this.$refs.myChart.enableAnimations;
animationDuration Number 500
Determines the animations duration in milliseconds. The value must be between 0 and 5000. If it is outside of this range jqxChart will reset it to the default value of 1000.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :animationDuration="1500"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>
enableAxisTextAnimation Boolean false
Determines if the animation of the axes text is enabled.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :animationDuration="1000" :enableAxisTextAnimation="true"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>
renderEngine String auto
Determines the rendering engine used to display the chart. Possible values are 'SVG', 'VML' and 'HTML5'. When the property is not set jqxChart will automatically select an optimal rendering engine depending on the browser capabilities.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :renderEngine="'HTML5'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>
xAxis Object null

Sets the Chart's xAxis.

Example:

xAxis:
{
	dataField: 'Date',
	formatFunction: function (value) {
		var months =
		['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
		return months[value.getMonth()];
	},
	type: 'date',
	baseUnit: 'month',
	flip: false,
	tickMarks: {
		visible: true,
		step: 1,
		color: '#888888'
	},
	unitInterval: 1,
	gridLines: { 
		visible: true,
		step: 3,
		color: '#888888'
	}
}                        
  • visible - shows or hides the xAxis axis.
  • unitInterval - sets the interval between the units.
  • dataField - points to a data field in the data source.
  • type - the type of the axis. Values can be:
    • 'default' - auto detects and switches to 'basic', 'linear' or 'date'
    • 'date'- when displaying dates
    • 'basic' - displays all data points sequencially
    • 'linear' - linear arrangement by the value of the xAxis data field
  • baseUnit - the base unit when used with 'date' axis. Values can be 'year', 'month', 'day', 'hour', 'minute', 'second' or 'millisecond'.
  • valuesOnTicks - specifies whether the axis values will be aligned with the tick marks.
  • dateFormat - optional date format for parsing the data from the data source. Applicable when type is set to 'date'.
  • axisSize - sets the size of the xAxis.
  • customDraw - boolean determining whether to draw the axis or the user will use APIs to draw it. The default is false.
  • flip - specifies whether the axis is displayed in reverse order.
  • position - sets the axis position. Possible values: "top" and "bottom".
  • padding - object describing the padding of the axis
    • top - top padding.
    • bottom - bottom padding.
  • title - object describing the title of the axis
    • visible - boolean determining the visibility of the title.
    • text - text of the title.
    • class - CSS class of the title text.
    • horizontalAlignment - horizontal alignment.
    • verticalAlignment - horizontal alignment.
  • tickMarks - object describing the tick marks properties of the axis
    • visible - true/false/'custom' determining the visibility. When 'custom' is set, displays only custom values/offsets.
    • step - interval steps between tick marks placements.
    • dashStyle - tick marks dash style, e.g. '2,2',
    • lineWidth - line width in pixels of the tick marks.
    • size - size in pixels of the tick marks. The default is 4.
    • color - color of the tick marks, e.g. '#757575'.
    • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
  • gridLines - object describing the grid lines properties of the axis
    • visible - true/false/'custom' determining the visibility. When 'custom' is set, displays only custom values/offsets.
    • step - interval steps between grid lines placements.
    • dashStyle - grid lines dash style, e.g. '2,2',
    • lineWidth - line width in pixels of the grid lines.
    • color - color of the tick marks, e.g. '#757575'.
    • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
  • line - object describing the line properties of the axis
    • visible - boolean determining the visibility of the axis line.
    • dashStyle - line dash style, e.g. '2,2'. The default is inherited from the grid lines.
    • lineWidth - line width. The default is inherited from the grid lines.
    • color - color of axis line, e.g. '#757575'.
  • labels - object describing the labels properties of the axis
    • visible - true/false/'custom' determining the visibility of the axis labels. When 'custom' is set, displays only custom values/offsets.
    • step - interval steps between label placements.
    • class - CSS class of the labels.
    • angle - text rotation angle.
    • textRotationPoint - position to rotate the text around, e.g. 'lefttop', 'centertop' or 'rightbottom'
    • autoRotate - boolean determining if auto rotation is enabled. Applicable to polar and spider charts only.
    • horizontalAligment - horizontal labels alignment
    • verticalAligment - vertical labels alignment.
    • offset - labels offset, e.g {x: -5, y: 0}.
    • formatSettings - object describing the format settings of the labels.
    • formatFunction - callback function used to format the labels.
    • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
  • logarithmicScale - determines whether to use logarithmic scale. The default value is 'false'.
  • logarithmicScaleBase - base for logarithmic scale. The default value is 10.
  • showGridLines - deprecated. (use the visible property of gridLines)
  • gridLinesInterval - deprecated. (use the step property of gridLines)
  • gridLinesColor - deprecated. (use the color property of gridLines)
  • gridLinesDashStyle - deprecated. (use the dashStyle property of gridLines)
  • showTickMarks - deprecated. (use the visible property of tickMarks)
  • tickMarksInterval - deprecated. (use the step property of tickMarks)
  • tickMarksColor - deprecated. (use the color property of tickMarks)
  • tickMarksDashStyle - deprecated. (use the dashStyle property of tickMarks)
  • alternatingBackgroundColor - alternating background color between grid lines
  • alternatingBackgroundColor2 - second alternating background color
  • alternatingBackgroundOpacity - opacity of the alternating background
  • formatSettings - settings used to format the displayed values.
  • formatFunction - custom function to format the displayed values.
  • toolTipFormatSettings - settings used to format xAxis values in tooltips.
  • toolTipFormatFunction - custom function to format xAxis values in tooltips.
  • rangeSelector - definition of a range selector on the xAxis
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>
valueAxis Object null
Example:
valueAxis: 
{  
	title: { text: 'Values' },     
	unitInterval: 1,     
	minValue: 0,     
	maxValue: 100,     
	gridLines: { visible: true, step: 3, color: '#888888' } 
}                         
valueAxis properties:
  • visible - shows or hides the valueAxis.
  • unitInterval - sets the interval between the units.
  • minValue - sets the minimum value of the valueAxis.
  • maxValue - sets the maximum value of the valueAxis.
  • baselineValue - sets the baseline value for the axis.
  • logarithmicScale - determines whether to use logarithmic scale. The default value is 'false'.
  • logarithmicScaleBase - base for logarithmic scale. The default value is 10.
  • formatSettings - settings used to format the displayed values along the axis.
  • formatFunction - custom function to format the displayed values along the axis.
  • flip - specifies whether the values are displayed in reverse order.
  • position - sets the axis position. Possible values: \\"left\\" and \\"right\\".
  • padding - object describing the padding of the axis
    • left - left padding.
    • right - right padding.
  • axisSize - sets the size of the axis.
  • customDraw - boolean determining whether to draw the axis or the user will use APIs to draw it. The default is false.
  • title - object describing the title of the valueAxis
    • visible - boolean determining the visibility of the title.
    • text - text of the title.
    • class - CSS class of the title text.
    • horizontalAlignment - horizontal alignment.
    • verticalAlignment - horizontal alignment.
  • tickMarks - object describing the tick marks properties of the valueAxis
    • visible - true/false/'custom' determining the visibility. When 'custom' is set, displays only custom values/offsets.
    • step - interval steps between tick mark placements.
    • dashStyle - tick marks dash style, e.g. '2,2',
    • lineWidth - line width in pixels of the tick marks.
    • size - size in pixels of the tick marks. The default is 4.
    • color - color of the tick marks, e.g. '#757575'.
    • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
  • gridLines - object describing the grid lines properties of the valueAxis
    • visible - true/false/'custom' determining the visibility. When 'custom' is set, displays only custom values/offsets.
    • step - interval steps between grid line placements.
    • dashStyle - grid lines dash style, e.g. '2,2',
    • lineWidth - line width in pixels of the grid lines.
    • color - color of the tick marks, e.g. '#757575'.
    • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
  • line - object describing the line properties of the axis
    • visible - boolean determining the visibility of the axis line.
    • dashStyle - line dash style, e.g. '2,2'. The default is inherited from the grid lines.
    • lineWidth - line width. The default is inherited from the grid lines.
    • color - color of axis line, e.g. '#757575'.
  • labels - object describing the labels properties of the axis
    • visible - true/false/'custom' determining the visibility. When 'custom' is set, displays only custom values/offsets.
    • step - interval steps between label placements.
    • class - CSS class of the labels.
    • angle - text rotation angle.
    • textRotationPoint - position to rotate the text around, e.g. 'lefttop', 'centertop' or 'rightbottom'
    • autoRotate - boolean determining if auto rotation is enabled. Applicable to polar and spider charts only.
    • horizontalAligment - horizontal labels alignment.
    • verticalAligment - vertical labels alignment.
    • offset - labels offset, e.g {x: -5, y: 0}.
    • formatSettings - object describing the format settings of the labels.
    • formatFunction - callback function used to format the labels.
    • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
  • showGridLines - deprecated. (use the visible property of gridLines)
  • gridLinesInterval - deprecated. (use the step property of gridLines)
  • gridLinesColor - deprecated. (use the color property of gridLines)
  • gridLinesDashStyle - deprecated. (use the dashStyle property of gridLines)
  • showTickMarks - deprecated. (use the visible property of tickMarks)
  • tickMarksInterval - deprecated. (use the step property of tickMarks)
  • tickMarksColor - deprecated. (use the color property of tickMarks)
  • tickMarksDashStyle - deprecated. (use the dashStyle property of tickMarks)
  • alternatingBackgroundColor - alternating background color between grid lines
  • alternatingBackgroundColor2 - second alternating background color
  • alternatingBackgroundOpacity - opacity of the alternating background
  • bands - optional color bands dislayed in the chart's plot area
    • minValue - start value of the color band.
    • maxValue - end value of the color band.
    • color - color used to fill the area between the minValue and the maxValue.
    • opacity - fraction indicating the fill opacity.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :valueAxis="valueAxis"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
valueAxis: {
title: { text: 'Values' },
unitInterval: 1,
minValue: 0,
maxValue: 100,
gridLines: { visible: true, step: 3, color: '#888888' }
},
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>
seriesGroups Array null

The seriesGroups property is used to describe all series displayed on the chart. jqxChart supports multiple series of different types and series grouping. Each series group may have its own Value Axis (Y-axis) which allows you to have values with different scales displayed on the same chart at the same time. It also allows you to display multiple series types together on the same chart. For example, you can display all series in one group as lines and the series in a second group as columns.


seriesGroups:
[
    {
        type: 'stackedarea100',
        orientation: 'vertical',
        series: [
                { dataField: 'SearchNonPaid', displayText: 'Non-Paid Search Traffic' },
                { dataField: 'SearchPaid', displayText: 'Paid Search Traffic' },
                { dataField: 'Referral', displayText: 'Referral Traffic' }
            ],
        bands:
        [
            { minValue: 2000, maxValue: 2500, color: '#FF0000', opacity: 0.15},
            { minValue: 1000, maxValue: 1100, color: '#FF0000', opacity: 0.20}
        ]
            
    }
]
The seriesGroups is an array of objects where each object represents one group. A group may have the following properties:
  • type - sets the chart type. jqxChart supports several common chart types. You can easily plot series of different types on a common chart. A type must be specified for each series group. Currently jqxChart supports the following series types:
    • column - simple column series
    • stackedcolumn - stacked column series
    • stackedcolumn100 - percentage stacked columns
    • rangecolumn - floating column between two values
    • waterfall - waterfall series
    • stackedwaterfall - stacked waterfall series
    • line - simple streight lines connecting the value points
    • stackedline - stacked lines
    • stackedline100 - percentage stacked lines
    • spline - smooth lines connecting the value points
    • stackedspline - smooth stacked lines
    • stackedspline100 - percentage stacked smooth lines
    • stepline - step line
    • stackedstepline - stacked step line
    • stackedstepline100 - percentage stacked step line
    • area - area connecting the value points with streight lines
    • stackedarea- stacked area with streight lines between the points
    • rangearea - floating area between pairs of value points
    • stackedline100 - percentage stacked area
    • splinearea - smooth area connecting the value points
    • splinerangearea - smooth floating area between pairs of value points
    • stackedsplineara - smooth stacked area
    • stackedsplinearea100 - percentage stacked smooth area
    • steplinearea - step area connecting the value points
    • stackedsteplineara - step stacked area
    • stackedsteplinearea100 - percentage stacked step area
    • pie - circular chart divided into sectors, illustrating proportion
    • donut - chart divided into circular sectors with different inner and outer radius
    • scatter - data is displayed as a collection of points
    • stackedscatter - data is displayed as a collection of points and the values are stacked
    • stackedscatter100 - data is displayed as a collection of points and the values are percentage stacked
    • bubble - data is displayed as a collection of bubbles
    • stackedbubble - data is displayed as a collection of bubbles and the values are stacked
    • stackedbubble100 - data is displayed as a collection of bubbles and the values are percentage stacked
    • candlestick - display candlestick series using open, high, low, close data points
    • ohlc - display OHLC series using open, high, low, close data points
  • orientation - specifies the orientation of the series group.
    • vertical - the valueAxis is displayed vertically and the xAxis horizontally.
    • horizontal - the valueAxis is displayed horizontally and the xAxis vertically
  • valueAxis - object describing the valueAxis for this group. jqxChart allows you to use a common valueAxis and/or multiple value axes per serie group.
  • columnsGapPercent - percentage gap between columns within the same serie. The default value is 25.
  • seriesGapPercent - percentage gap between columns belonging to different series. The default value is 10.
  • columnsMaxWidth - maximum width of columns in column series.
  • columnsMinWidth - minimum width of columns in column series.
  • columnsTopWidthPercent - columns top width (as percentage of the total width). The default value is 100.
  • columnsBottomWidthPercent - columns bottom width (as percentage of the total width). The default value is 100.
  • skipOverlappingPoints - determines whether to display overlapping data points in column, ohlc and candlestick series. The default value is true.
  • polar - a boolean value. When polar is set to 'true' the chart will render in polar coordinates.
  • spider - a boolean value. When spider is set to 'true' the chart will render in polar coordinates.
  • radius - the radius of the polar coordinate system. Applicable to polar and spider charts only.
  • startAngle - the start angle (in degrees) of the polar coordinate system. Applicable to polar and spider charts only.
  • endAngle - the end angle (in degrees) of the polar coordinate system. Applicable to polar and spider charts only.
  • offsetX - horizontal position of the center of the polar coordinate system. Applicable to polar and spider charts only.
  • offsetY - vertical position of the center of the polar coordinate system. Applicable to polar and spider charts only.
  • series - an array of chart series.

    Each serie has the following properties:

    • dataField - name of the field in the data source.
    • displayText - name to display for this serie.
    • dataFieldOpen, dataFieldHigh, dataFieldLow, dataFieldClose - names of the fields in the data source used in candlestcik and ohlc series
    • displayTextOpen, displayTextHigh, displayTextLow, displayTextClose - names to display for candlestick and ohlc series.
    • colorScheme - color palette to use when rendering the serie.
    • color - (Deprecated) fill color for the serie.
    • lineColor - Line color for the serie.
    • lineColorSelected - Line color for the serie when selected.
    • fillColor - Fill color for the serie.
    • fillColorSelected - Fill color for the serie when selected.
    • fillColorAlt - Alternating fill color for the serie. Applicable to OHLC series only.
    • fillColorAltSelected - Alternating fill color for the serie when selected. Applicable to OHLC series only.
    • lineColorSymbol - Line color for the marker symbols in serie.
    • lineColorSymbolSelected - Line color for the marker symbols in the serie when selected.
    • fillColorSymbol - Fill color for the marker symbols in the serie.
    • fillColorSymbolSelected - Fill color for the the marker symbols in serie when selected.
    • colorFunction - a custom function that returns the color of a data point. The function will received the following parameters: dataValue, itemIndex, serie, group The implementation of the function can return a single color which will be used as a fillColor and the other colors will be derived or it can return an object containing fillColor, fillColorSelected, etc.
    • greyScale - boolean that determines whether to display the serie in grey scale.
    • legendFormatSettings - legend data formatting settings for the values in the serie.
    • legendFormatFunction - legend data formatting function for the values in the serie.
    • legendFillColor - fill color of the legend box. The default value is inherited by the serie's color.
    • legendLineColor - line color of the legend box. The default value is inherited by the serie's color.
    • toolTipFormatSettings - tooltip data formatting settings for the values in the serie.
    • toolTipFormatFunction - tooltip data formatting function for the values in the serie.
    • toolTipLineColor - determines the tooltip's border lines color.
    • toolTipBackground - determines the tooltip's background.
    • toolTipClass - determines the tooltip's CSS class name.
    • useGradient - determines whether to use color gradients.
    • opacity - determines the opacity of the items in this serie.
    • lineWidth - determines the line tickness of the items in this serie.
    • lineDashStyle - a string sequence of numbers represening line and space lengths, e.g. '2,2'
    • emptyPointsDisplay - determines how to display value gaps in line series. Possible values are: 'connect', 'skip' and 'zero'
    • linesUnselectMode - determines how line and area series are unselected based on mouse and touch events. Possible values are 'click' or 'default'. If the value is set to 'click', once a line or area serie is selected, it will remain selected until the user clicks or moves the cursor outside the chart. In default mode, the serie will be unselected immediatelly after the cursor moves over another serie or outside the chart.
    • symbolType - determines the symbol type displayed for the data points in the serie. This parameter is applicable to line, area, scatter and bubble series only. Acceptable values are: 'none', 'circle', 'square', 'diamond', 'triangle_up', 'triangle_down', 'triangle_left', 'triangle_right'
    • symbolSize - determines the size of the symbol element
    • symbolSizeSelected - determines the size of the symbol element. This paramters is applicable to line and area series only.
    • labels - object describing the labels properties of the axis
      • visible - true/false/'custom' determining the visibility. When 'custom' is set, displays only custom values/offsets.
      • offset - labels offset, e.g {x: -5, y: 0}.
      • angle - text rotation angle.
      • horizontalAligment - horizontal labels alignment.
      • verticalAligment - vertical labels alignment.
      • class - CSS class of the labels.
      • backgroundColor - labels background color.
      • backgroundOpacity - labels background opacity.
      • borderColor - labels border line color.
      • borderOpacity - labels border line opacity.
      • padding - object describing the padding of the labels
        • left - left padding.
        • right - right padding.
        • top - top padding.
        • bottom - bottom padding.
      • autoRotate - boolean determining if auto rotation is enabled.
      • formatSettings - object describing the format settings of the labels.
      • formatFunction - callback function used to format the labels.
      • radius - radius of the labels in pie/donut series.
      • linesEnabled - determines whether to use lines for the labels in pie/donut series.
      • linesAngles - determines whether to use direct lines for the labels in pie/donut series.
      • custom - an array of custom values/offsets where a label/tickmark/gridline will be displayed.
    • radius - outer radius of pie and donut series in pixels or percents.
    • innerRadius - inner radius of donut series in pixels or percents.
    • selectedRadiusChange - radius change on selection of pie and donut series in pixels or percents.
    • initialAngle - initial angle in pie and donut series.
    • startAngle - minimum angle in a pie, donut, polar and spider series
    • endAngle - maximum angle in a pie, donut, polar and spider series
    • centerOffset - offset from the center point in a pie/donut series.
    • hiddenPointsDisplay - determines whether to hide slices of toggled points in pie and donut series.
    • enableSeriesToggle - determines whether to toggle the series visibility after click on a legend's box.
    • enableSelection - determines whether the serie is selectable.
  • annotations - an array of chart annotation objects.

    Each annotation has the following properties:

    • yValue - value to determine the vertical offset of the annotation.
    • xValue - value to determine the horizontal offset of the annotation.
    • yValue2 - optional 2nd value to determine the vertical offset of the annotation's bottom-right point.
    • xValue2 - optional 2nd value to determine the horizontal offset of the annotation bottom-right point.
    • offset - custom offset of the annotation relative to xValue & yValue, e.g. { x: -45, y: -25}
    • width - width of the annotation
    • height - width of the annotation
    • fillColor - fill/background color of the annotation.
    • lineColor - line color of the annotation.
    • type - shape type of the annotation, e.g. 'rect, circle, line, path'.
    • radius - radius of the annotation in case its type is 'circle'.
    • path - line path command in case the type is 'path', e.g. 'M 10,10 L 20,20 L 50,50'.
    • text - object describing the text of the annotation:
      • value - text of the annotation.
      • class - CSS class of the annotation.
      • angle - text rotation angle.
      • offset - offset of the annotation text relative to the base annotation offset, e.g. { x: 5, y: 10}
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
}
}
</script>

Events

toggle Event
The event is raised when a serie is toggled by a user click in the chart's legend or through an API call.

Code examples

Bind to the toggle event of jqxChart.

<template>
<JqxChart ref="myChart" @toggle="onToggle($event)" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
onToggle: function (event) {
alert('do something...');
}
}
}
</script>

click Event
The event is raised when the user clicks on series element.

Code examples

Bind to the click event of jqxChart.

<template>
<JqxChart ref="myChart" @click="onClick($event)" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
onClick: function (event) {
alert('do something...');
}
}
}
</script>

refreshBegin Event
The event is raised when the chart begins rendering.

Code examples

Bind to the refreshBegin event of jqxChart.

<template>
<div>
<JqxChart ref="myChart" style="width: 850px; height: 500px"
@rangeSelectionChanging="dumpEventInfo($event)" @rangeSelectionChanged="dumpEventInfo($event)"
@refreshBegin="dumpEventInfo($event)" @refreshEnd="dumpEventInfo($event)"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :valueAxis="valueAxis">
</JqxChart>
<div ref="eventsText" style="width: 847px; height: 200px; overflow-y: scroll; border: 1px solid lightgrey"></div>
</div>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
valueAxis: {
title: { text: 'Values' },
unitInterval: 1,
minValue: 0,
maxValue: 100,
gridLines: { visible: true, step: 3, color: '#888888' }
},
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: {
dataField: 'Day',
rangeSelector: {
size: 100,
padding: { top: 10, bottom: 0 },
backgroundColor: 'white',
dataField: 'Keith'
}
},
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
dumpEventInfo: function (event) {
if (event.type) {
let eventsText = this.$refs.eventsText;
eventsText.innerHTML = event.type + '<br />' + eventsText.innerHTML;
}
}
}
}
</script>

refreshEnd Event
The event is raised when the chart finishes rendering.

Code examples

Bind to the refreshEnd event of jqxChart.

<template>
<div>
<JqxChart ref="myChart" style="width: 850px; height: 500px"
@rangeSelectionChanging="dumpEventInfo($event)" @rangeSelectionChanged="dumpEventInfo($event)"
@refreshBegin="dumpEventInfo($event)" @refreshEnd="dumpEventInfo($event)"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :valueAxis="valueAxis">
</JqxChart>
<div ref="eventsText" style="width: 847px; height: 200px; overflow-y: scroll; border: 1px solid lightgrey"></div>
</div>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
valueAxis: {
title: { text: 'Values' },
unitInterval: 1,
minValue: 0,
maxValue: 100,
gridLines: { visible: true, step: 3, color: '#888888' }
},
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: {
dataField: 'Day',
rangeSelector: {
size: 100,
padding: { top: 10, bottom: 0 },
backgroundColor: 'white',
dataField: 'Keith'
}
},
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
dumpEventInfo: function (event) {
if (event.type) {
let eventsText = this.$refs.eventsText;
eventsText.innerHTML = event.type + '<br />' + eventsText.innerHTML;
}
}
}
}
</script>

rangeSelectionChanging Event
The event is raised after the chart's range selector position changes and after the chart ends rendering.

Code examples

Bind to the rangeSelectionChanging event of jqxChart.

<template>
<div>
<JqxChart ref="myChart" style="width: 850px; height: 500px"
@rangeSelectionChanging="dumpEventInfo($event)" @rangeSelectionChanged="dumpEventInfo($event)"
@refreshBegin="dumpEventInfo($event)" @refreshEnd="dumpEventInfo($event)"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :valueAxis="valueAxis">
</JqxChart>
<div ref="eventsText" style="width: 847px; height: 200px; overflow-y: scroll; border: 1px solid lightgrey"></div>
</div>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
valueAxis: {
title: { text: 'Values' },
unitInterval: 1,
minValue: 0,
maxValue: 100,
gridLines: { visible: true, step: 3, color: '#888888' }
},
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: {
dataField: 'Day',
rangeSelector: {
size: 100,
padding: { top: 10, bottom: 0 },
backgroundColor: 'white',
dataField: 'Keith'
}
},
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
dumpEventInfo: function (event) {
if (event.type) {
let eventsText = this.$refs.eventsText;
eventsText.innerHTML = event.type + '<br />' + eventsText.innerHTML;
}
}
}
}
</script>

rangeSelectionChanged Event
The event is raised when the chart's range selector position changes and before the chart starts rendering.

Code examples

Bind to the rangeSelectionChanged event of jqxChart.

<template>
<div>
<JqxChart ref="myChart" style="width: 850px; height: 500px"
@rangeSelectionChanging="dumpEventInfo($event)" @rangeSelectionChanged="dumpEventInfo($event)"
@refreshBegin="dumpEventInfo($event)" @refreshEnd="dumpEventInfo($event)"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" :valueAxis="valueAxis">
</JqxChart>
<div ref="eventsText" style="width: 847px; height: 200px; overflow-y: scroll; border: 1px solid lightgrey"></div>
</div>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
valueAxis: {
title: { text: 'Values' },
unitInterval: 1,
minValue: 0,
maxValue: 100,
gridLines: { visible: true, step: 3, color: '#888888' }
},
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: {
dataField: 'Day',
rangeSelector: {
size: 100,
padding: { top: 10, bottom: 0 },
backgroundColor: 'white',
dataField: 'Keith'
}
},
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
methods: {
dumpEventInfo: function (event) {
if (event.type) {
let eventsText = this.$refs.eventsText;
eventsText.innerHTML = event.type + '<br />' + eventsText.innerHTML;
}
}
}
}
</script>

Methods

NameArgumentsReturn Type
getInstance Object

Method: getInstance

<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getInstance();
}
}
</script>
refresh None
Refreshes the jqxChart
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.refresh();
}
}
</script>
update None
Updates the jqxChart
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.update();
}
}
</script>
destroy None
destroys the jqxChart instance
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.destroy();
}
}
</script>
addColorScheme schemeName, colors None
Adds a new color sheme. If a scheme with the same name already exists the method will update its colors.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups" />
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.addColorScheme('myScheme', ['#722694', '#AA4643', '#89A54E', '#71588F', '#4198AF']);
this.$refs.myChart.colorScheme = 'myScheme';
}
}
</script>
removeColorScheme schemeName None
Removes an existing color scheme. If the scheme does not exist the method has no effect.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.colorScheme = 'scheme05';
this.$refs.myChart.removeColorScheme('scheme01');
}
}
</script>
getItemsCount groupIndex, serieIndex Number
Gets the number of rendered items in a specific serie.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getItemsCount(0,1,0);
}
}
</script>
getItemCoord groupIndex, serieIndex, itemIndex Object
Gets the rendered coordinates of a data point element.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getItemCoord(0,1,0);
}
}
</script>
getXAxisRect groupIndex Object
Gets the rendered rectangle coordinates of the x-Axis of specific serie group.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getXAxisRect(0);
}
}
</script>
getXAxisLabels groupIndex Array
Gets the rendered coordinates and values of the xAxis labels.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getXAxisLabels(0);
}
}
</script>
getValueAxisRect groupIndex Object
Gets the rendered rectangle coordinates of the valueAxis of specific serie group.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getValueAxisRect(0);
}
}
</script>
getValueAxisLabels groupIndex Array
Gets the rendered coordinates and values of the valueAxis labels.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getValueAxisLabels(0);
}
}
</script>
getColorScheme colorScheme Array
Returns the colors of a color scheme by name. If the scheme doesn't exist the method returns undefined.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getColorScheme('scheme01');
}
}
</script>
hideSerie groupIndex, serieIndex, itemIndex None
Hides a chart serie. The result of calling this function is same as the user unchecking the legend box of a chart serie. The itemIndex parameter is optional and applicable to pie and donut series only.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.hideSerie(0,1);
}
}
</script>
showSerie groupIndex, serieIndex, itemIndex None
Shows a chart serie. The result of calling this function is same as the user checking the legend box of a chart serie. The itemIndex parameter is optional and applicable to pie and donut series only.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'" />
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.hideSerie(0, 1);
setTimeout(_ => this.$refs.myChart.showSerie(0, 1), 1000);
}
}
</script>
hideToolTip hideDelay None
Hides the current tooltip if visible.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.hideToolTip(100);
}
}
</script>
showToolTip groupIndex, serieIndex, itemIndex, showDelay, hideDelay None
Shows a the tooltip for a perticular data point.
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.showToolTip(0,0,1,100,100);
}
}
</script>
saveAsJPEG fileName, exportServerUrl None
Exports the chart's content as JPEG image. The browser must support HTML5 Canvas and the device must be able to connect to the export server. If you don't setup your own export server the default server is jqwidgets.com
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.saveAsJPEG('chartImage.jpeg','https://www.jqwidgets.com/export_server/export.php');
}
}
</script>
saveAsPNG fileName, exportServerUrl None
Exports the chart's content in PNG document. The browser must support HTML5 Canvas and the device must be able to connect to the export server. If you don't setup your own export server the default server is jqwidgets.com
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.saveAsPNG('chartImage.png','https://www.jqwidgets.com/export_server/export.php');
}
}
</script>
saveAsPDF fileName, exportServerUrl None
Exports the chart's content in PDF document. The browser must support HTML5 Canvas and the device must be able to connect to the export server. If you don't setup your own export server the default server is jqwidgets.com
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
this.$refs.myChart.saveAsPDF('chartImage.pdf','https://www.jqwidgets.com/export_server/export.php');
}
}
</script>
getXAxisValue offset, groupIndex Object
Returns the value corresponding to a specific offset along the x-Axis
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getXAxisValue(400,0);
}
}
</script>
getValueAxisValue offset, groupIndex Object
Returns the value corresponding to a specific offset along the valueAxis
<template>
<JqxChart ref="myChart" style="width: 850px; height: 500px;"
:title="'Fitness & Exercise Weekly Scorecard'" :description="'Time Spent in Vigorous Exercise'"
:enableAnimations="true" :source="source" :xAxis="xAxis" :seriesGroups="seriesGroups"
:colorScheme="'scheme02'"
/>
</template>
<script>
import JqxChart from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxchart.vue';
export default {
components: {
JqxChart
},
data: function () {
return {
source: [
{ Day: 'Monday', Keith: 0, Erica: 20, George: 10 },
{ Day: 'Tuesday', Keith: 20, Erica: 30, George: 40 }
],
xAxis: { dataField: 'Day' },
seriesGroups: [{
type: 'column',
columnsGapPercent: 50,
seriesGapPercent: 0,
valueAxis: { minValue: 0, description: 'Time in minutes' },
series: [
{ dataField: 'Keith', displayText: 'Keith' },
{ dataField: 'Erica', displayText: 'Erica' },
{ dataField: 'George', displayText: 'George' }
]
}]
}
},
mounted: function () {
const value = this.$refs.myChart.getValueAxisValue(100,0);
}
}
</script>