How do i build charts using Java script

Venu Gopal K shared this question 7 years ago
Answered

Hi,

I am unable to develop reports using Javascript. I am using one dimension and a measure and when i click on the final tab Preview the error is like, "There is an error in the javascript.

Please help me resolving my issue.

Venu

Replies (2)

photo
1

Hi Venu,

Unfortunately JavaScript can be a bit tricky to get going, and like all programming languages will require a bit of a learning curve and debugging.

In this case we can get more information on what specifically is going wrong with your code by looking at the browser console when you move to the data preview tab. Right click "inspect" on your browser screen, and then navigate to the "console" tab. This will display any errors thrown during Javascript processing.

This article should get you going in the right direction:

https://community.yellowfinbi.com/knowledge-base/article/tips-to-code-and-debug-a-javascript-chart-in-yellowfin

I would also recommend starting with one of our examples, and then modifying the code:

https://community.yellowfinbi.com/knowledge-base/article/javascript-charting-libraries-ski-team-examples

Let me know if you need anything else here.

Regards,

Nathan

photo
1

Hi Nathan,

Thanks for your prompt reply. As per the link provided, now i am able to understand something with respect JavaScript.

Also would be great if you can give me some insight, how to generate Charts using JavaScript.

Steps that i followed:

1. Create a table under Data tab using one dimension and one measure

2. From the Chart tab, i have dragged and dropped the dimension and measure

3. Selected JS (javascript) option

From here please guide me how to generate a Chart using JS, when i clicked on Preview nothing is coming up.

It would be great help if you can reply ASAP.

Enclosed here with the screenshot of Chart using JS,

Thanks,

Venu

photo
1

Hi Venu,

JavaScript charts require you to code the chart yourself. There are several handy libraries out there to help make cool graphics, but they do require a bit of a learning curve. We have example code that you can start from here:

https://community.yellowfinbi.com/knowledge-base/article/javascript-charting-libraries-ski-team-examples

What do you currently have in your JavaScript tab?

Regards,

Nathan

By the way I am on US time so excuse the delay.

photo
photo
1

Hi Venu,

I am going to set this ticket to closed for now, but if there is anything else I can do to help here, please just let me know and the case will be re-opened!


Regards,

Nathan

Leave a Comment
 
Attach a file