Can we automate e-charts data in angular application using protractor - protractor

I am working on test automation using Protractor tool.
The application has one chart module, which displays liner graph data.
When we hover on the graph data tool tip is displayed with x and y axis values.
Do we have any package in protractor to validate such chart data in test automation ?

Related

How to display a state time series chart in javascript?

I want to display set of data about state machine that I collected like Grafana.
expected result:
Maybe you can use d3.js or other js package in website.

use existing kibana visualizations into new app plugin

can you pull in existing Kibana visualizations into your new app? For example if I want to create a line chart visualization above a discover visualization and populate it with certain information based on an ES query I have run
cordially

Integrating TIBCO Jasper Reports to web

I am currently working on web application based on Angular JS,HTML5. I have a report section on the same where i am displaying the report data through API calls.
I feel that displaying reports through API call is not the best practice so i did some research and came across TIBCO Jasper reports and its looking fine till now.
What i have done till now is
Installed Jaspersoft Studio in my local machine.
Connected the same to my DB and generated JRXML file.
Uploaded the JRXML file to jasper server and generated reports from DB.
What i need to do is
I see i can generate reports in various formats from jasper server like pdf, excel etc.. How do i integrate this to my web page?
Please assist me on this and share your thoughts. Thanks in advance.
Are you using the community or professional version? If you are using the professional version, you can use their Visualize.js library to access your reports from a web application. We have had success integrating Jasper reports into our Angular app, though we've found it to be pretty buggy and it has required several workarounds on our part.
We started by creating an Angular service that handles all the communication with Visualize/Jasper. Once you get all the service plumbing done, it's just a matter of creating an empty DIV tag with an ID and passing that ID to the Visualize function that generates the report. Visualize will handle the REST request to the Jasper server and automatically inject the JS and HTML returned into your empty DIV.
You can find more info on Visualize (including API docs) here:
community.jaspersoft.com/project/visualizejs
You can integrate JasperServer into your web app using iFrames with their HTTP API. This would allow you to reuse the UI that is part of JasperServer. It is possible to customize the look and feel of this UI using themes. More info here:
http://community.jaspersoft.com/wiki/embedding-using-http-api

How to integrate ECharts with BIRT/Pentaho?

I'm looking for a report engine which may:
connect to data source via JDBC
create logic data set by grouping/aggregating the raw data
include a data filter on the top of each report, which allows my client use the report interactively
add custom charts, in my case, it's ECharts https://github.com/ecomfe/echarts
support multi-tenancy paradigm (new requirement)
Now BIRT and Pentaho are the two players on my table.
For pentaho, it's really hard to find useful document to at least clarify if it's capable. Please if you're familiar with it, let me know if pentaho community version meets my requirements.
For BIRT, I've found evidence it support my first 3 needs. But for custom charts, I can only find examples/docs about adding custom IMAGE/SVG charts. As ECharts is based on canvas, I'm not sure if it's possible to integrate ECharts with BIRT.
Thank you!
Yes, it is possible to integrate javascript charts in BIRT. Basically:
Select the top-level element of your report outline -> Script tab -> clientScripts
Include here your echart resources (.js and .css) using "head.js" (see link below for more informations)
Add a text element to the report
Set the type of this new element to 'HTML'
In a script tag, initialize your echart object in a "head.ready()" instruction (see link below for more informations). The tricky part is to understand how to use a server-side dataset in a client-side chart within this html script.
You can find more informations and a full example of a such report here, this example embeds a jvectormap in a birt report. Furthermore, see a live demo here, where a JIT chart is integrated in a BIRT report.
However since these charts are created using a client-side framework, obviously BIRT won't be able to export them in PDF format. You can see in the live demo linked above, how a BIRT report can easily handle a different output when users export to PDF.
You can do it in Pentaho, but which tool to use it's a matter of debate.
Using Pentaho Report Designer:
- Connects to DBs using JDBC;
- Allows grouping rows based on a field or fields and calculating functions such as running sums;
- Can use selectors (single or multi-valued selectors) to interact with the report, passing the selector values to the queries;
- As far as I can tell, you don't have many options to choose a specific charting engine.
However, you can use CCC as the charting engine, which is a Protovis based Javascript charting engine, cross-browser compatible (for the most part), renders SVG charts with a decent fallback for IE (I believe the fallback is flash but I'm not sure if it changed recently) and produces decent looking charts.
If you HAVE to use that chart library, then I suggest using C-Tools dashboards instead, where you can embed as many different JS files you want and you have full control over the JS and CSS of the page. But most of the reporting functions from PRD will have to be implmented by you.

How to create Multi Axis graph using Chart Pro in iReport

I am able to create multi axis graph with the normal graph tool in iReport version 4.0.1 but I cannot create multi axis graph using fusion charts (i.e. "Charts Pro" tool). I have a deadline to meet on this report and I need help.
As you can see, the Charts Pro do not have a Multiaxis report like the JFreeCharts have.