Insert area charts in Polarion LiveReport Page

Description
Cody
Posts: 3
Joined: Tue Nov 22, 2016 1:57 pm

Insert area charts in Polarion LiveReport Page

Postby Cody » Wed Dec 07, 2016 2:10 pm

Hello community,

first of all, I'm a newbie in Polarion and Velocity Template Language. My question ist:

How can I insert a basic area chart from highcharts.com (http://www.highcharts.com/demo/area-basic)
in a LiveReport Page in Polarion?

I already replaced the required highcharts.js and exporting.js files in my polarion folder.

Here are some snippets of my code:

Code: Select all

#set($html = $renderingContext.createHtmlFragmentBuilder())
#set($chart = $renderingContext.createChartBuilder())
#set($area = $chart.build())

$!area.title().text("Example Title").null ##works
##$!area.credits.text("Example Credits").null ##doesn't work
$!area.xAxis.title.text("X-Axis").null ##works
$!area.yAxis.title.text("Y-Axis").null ##works
$!area.plotOptions().series().addRawAttribute("tooltip","{pointFormat: 'hello'}").null ##works
##$!area.plotOptions().series().addRawAttribute("chart","{type: 'area'}").null ##doesn't work


Especially the last command (type: area), is propably the most important for me, because I want an area chart. Right now I have a Line Chart.

Does anybody know how to insert the mentioned area chart or can somebody show me even a code example with an area chart in Polarion? Thanks in advance!

Cody

Demont
Posts: 1
Joined: Mon Jul 10, 2017 2:07 pm

Re: Insert area charts in Polarion LiveReport Page

Postby Demont » Mon Jul 17, 2017 6:02 am

Cody wrote:How can I insert a basic area chart from highcharts.com (http://www.highcharts.com/demo/area-basic)
in a LiveReport Page in Polarion?area chart or can somebody show me even a code example with an area chart in Polarion? Thanks in advance!

Cody


Hi Cody, I'm trying to accomplish something similar. Did you find out how to get the chart to show up properly?


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests