You are on page 1of 4

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 off 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
Val0: 13 px serif note that title will be
set by the “Title”
Property

titleLabel_fillStyle blue Arg0: titleLabel_fillStyle -

Val0: blue

titleLabel_textAngle -0.2 Arg0:titleLabel_textAngle To rotate the title


label.
Val0: -0.2

titleLabel_textAlign lef Arg0: titleLabel_textAlign To Change the


alignment , possible
Val0: center value are

“lef” ,
“center” ,”right”

titleLabel_textBaseline top Arg0: titleLabel_textBaseline Base line of text ,


possible values are
Val0: top “top” and “bottom”

titleLabel_textStyle blue Arg0: titleLabel_textStyle To change the color of


the text , you can also
Val0: blue specify the color code
in hexadecimal.

titleLabel_text - Arg0: titleLabel_text Use for dynamic Title


change, you can
Val0: Function(d) { return include any parameter
d.substr(3); } over here also.

xAxisLabel

Extension points Sample Value Example Description.

xAxisLabel_font 10 px serif Arg0: xAxisLabel_font For change the x axis


Label fonts
Val0: 10 px serif

xAxisLabel_textAngle -0.2 Arg0: xAxisLabel_textAngle To rotate the x axis


label.
Val0: -0.8

xAxisLabel_textAlign lef Arg0: xAxisLabel_textAlign To Change the


Val0: center alignment , possible
value are

“lef” ,
“center” ,”right”

xAxisLabel_textBaseline top Arg0: xAxisLabel_textBaseline Base line of text ,


possible values are
Val0: top “top” and “bottom”

xAxisLabel_textStyle blue Arg0: xAxisLabel_textStyle To change the color of


the text , you can also
Val0: blue specify the color code
in hexadecimal.

xAxisLabel_text - Arg0: xAxisLabel_text Use for dynamic label


change , you can
Val0: Function(d) { return include any parameter
d.substr(3); } 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_textAngle -0.2 Arg0: yAxisLabel_textAngle To rotate the x axis


label.
Val0: -0.8

yAxisLabel_textAlign lef Arg0: yAxisLabel_textAlign To Change the


alignment , possible
Val0: center value are

“lef” ,
“center” ,”right”

yAxisLabel_textBaseline top Arg0: yAxisLabel_textBaseline Base line of text ,


possible values are
Val0: top “top” and “bottom”

yAxisLabel_textStyle blue Arg0: yAxisLabel_textStyle To change the color of


the text , you can also
Val0: blue specify the color code
in hexadecimal.

yAxisLabel_text - Arg0: yAxisLabel_text Use for dynamic label


change , you can
Val0: Function(d) { return include any parameter
d.substr(3); } 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
xAxisRule_lineWidth Val0: 0.8 parallel lines.
yAxis_lineWidth To enable rules/grids ,
yAxisRule_lineWidth go to property and
enable

Show xx grid = True

Show yy grid = True

xAxis_fillStyle #00df00 Arg0: xAxis_fillStyle

xAxisRule_fillStyle blue Val0: red

yAxis_fillStyle

yAxisRule_fillStyle

xAxis_strokeStyle Red Arg0: xAxis_fillStyle To change the stroke


style.
xAxisRule_strokeStyle Val0: blue

yAxis_strokeStyle

yAxisRule_strokeStyle

dot Items

Extension points Sample Value Example Description.

dot_fillStyle green Arg0: dot_fillStyle For change the


property of dot , in line
dot_shape square Val0: blue chart also you can
dot_shapeRadius 3 change the dot to
square and change the
property

You might also like