You are on page 1of 5

Pentaho CCC/CDE tool Extension points.

Pentaho CDE tool, Extension points are very useful feature. You can treat this
extension points as a advance setting or property of CCC Bar/Pie/any chart. By
setting this extension points you can achieve the below sample thing, yes of
course list is too much so we are not mentioning all of this.
Change the X axis Label
Change X axis label fonts , COLOR , alignment (vertical , diagonal).
Same way you can change the Y axis lables/fonts.
Problem1: How can I rotate x axis labels diagonally in CCC Bar chart with help
of extension points.
Solution:
In CDE, Open the related CCC chart component, click on the
Advance Properties of that component and select the extension points, it will
open the one popup window , Add below extension point to rotate the x Axis
lables.
Arg0: xAxisLabel_textAngle

Val0: -0.8

Arg1: xAxisLabel_textAlign

Val1: right

Please note that we have provided here angle of -0.8 (negative 0.8) , you can
customize your angle as per your need. if you are working on CDA not through
CDE , then you need to add the extention point with above 2 argument as
shown below.
var render_top_load_chart = {
..........
extensionPoints: [["xAxisLabel_textAngle","-1.3"],["xAxisLabel_textAlign","right"]]
}
Problem2: How can set Y axis fonts and color of labels.
Solution:

In CDE, same way set below extension points ,

Arg0: xAxisLabel_font

Val0: 13 px Arial

Arg1: xAxisLabel_textStyle

Val1: blue

We can set the number of extension point for setting Advance Property of the
CCC Component.

Some of the extension points that are suggest by Pentaho Team is as per below

titleLabel
Extension points

Sample
Value

Example

Description.

titleLabel_font

20 px serif

Arg0: titleLabel_font

For change the


Title Label fonts ,
Please note that
title will be set by
the Title
Property

Val0: 13 px serif

titleLabel_fillStyle

blue

Arg0: titleLabel_fillStyle

Val0: blue
titleLabel_textAngl
e

-0.2

Arg0:titleLabel_textAngl
e

To rotate the title


label.

Val0: -0.2
titleLabel_textAlign

left

Arg0:
titleLabel_textAlign
Val0: center

To Change the
alignment ,
possible value are
left ,
center ,right

titleLabel_textBase
line

top

Arg0:
titleLabel_textBaseline
Val0: top

titleLabel_textStyle

blue

Arg0:
titleLabel_textStyle
Val0: blue

titleLabel_text

Arg0: titleLabel_text
Val0: Function(d)
{ return d.substr(3); }

Base line of text ,


possible values
are top and
bottom
To change the
color of the text ,
you can also
specify the color
code in
hexadecimal.
Use for dynamic
Title change, you
can include any
parameter over
here also.

xAxisLabel
Extension points

Sample

Example

Description.

Value
xAxisLabel_font

10 px serif

Arg0: xAxisLabel_font
Val0: 10 px serif

xAxisLabel_textAn
gle

-0.2

Arg0:
xAxisLabel_textAngle

For change the x


axis Label fonts
To rotate the x
axis label.

Val0: -0.8
xAxisLabel_textAlig
n

left

Arg0:
xAxisLabel_textAlign
Val0: center

To Change the
alignment ,
possible value are
left ,
center ,right

xAxisLabel_textBas
eline

top

Arg0:
xAxisLabel_textBaseline
Val0: top

xAxisLabel_textSty
le

blue

Arg0:
xAxisLabel_textStyle
Val0: blue

xAxisLabel_text

Arg0: xAxisLabel_text
Val0: Function(d)
{ return d.substr(3); }

Base line of text ,


possible values
are top and
bottom
To change the
color of the text ,
you can also
specify the color
code in
hexadecimal.
Use for dynamic
label change , you
can include any
parameter over
here also.

yAxisLabel
Extension points

Sample
Value

Example

Description.

yAxisLabel_font

10 px serif

Arg0: yAxisLabel_font

For change the y


axis Label fonts

Val0: 10 px serif
yAxisLabel_textAn
gle

-0.2

Arg0:
yAxisLabel_textAngle

To rotate the x
axis label.

Val0: -0.8
yAxisLabel_textAlig
n

left

Arg0:
yAxisLabel_textAlign

To Change the
alignment ,
possible value are

yAxisLabel_textBas
eline

top

Val0: center

left ,
center ,right

Arg0:
yAxisLabel_textBaseline

Base line of text ,


possible values
are top and
bottom

Val0: top
yAxisLabel_textSty
le

blue

Arg0:
yAxisLabel_textStyle
Val0: blue

yAxisLabel_text

Arg0: yAxisLabel_text
Val0: Function(d)
{ return d.substr(3); }

To change the
color of the text ,
you can also
specify the color
code in
hexadecimal.
Use for dynamic
label change , you
can include any
parameter over
here also.

Line Items
Extension points

Sample
Value

Example

Description.

xAxis_lineWidth

0.8

Arg0: xAxis_lineWidth

To change the
XAxis Line width
and other parallel
lines.

xAxisRule_lineWidt
h

Val0: 0.8

yAxis_lineWidth

To enable
rules/grids , go to
property and
enable

yAxisRule_lineWidt
h

Show xx grid =
True
Show yy grid =
True
xAxis_fillStyle

#00df00

Arg0: xAxis_fillStyle

xAxisRule_fillStyle

blue

Val0: red

Red

Arg0: xAxis_fillStyle

yAxis_fillStyle
yAxisRule_fillStyle
xAxis_strokeStyle
xAxisRule_strokeSt

To change the
stroke style.

yle

Val0: blue

yAxis_strokeStyle
yAxisRule_strokeSt
yle
dot Items
Extension points

Sample
Value

Example

Description.

dot_fillStyle

green

Arg0: dot_fillStyle

dot_shape

square

Val0: blue

dot_shapeRadius

For change the


property of dot , in
line chart also you
can change the
dot to square and
change the
property

You might also like