This topic contains 9 replies, has 0 voices, and was last updated by chanarbon 7 years, 8 months ago.
-
AuthorPosts
-
March 14, 2017 at 8:36 am #1058
karennHello all,
We are looking to include some data driven graphs in a 2.0 Suitelet. Any recommendations on what to use? New territory for us.
Thanks,
Karen
This is a cached copy. Click here to see the original post. -
March 14, 2017 at 9:04 am #1059
david.smithI use the Google charts. They seem to work well.
-
March 14, 2017 at 9:12 am #1060
karennThanks David. I’ll check it out
-
March 14, 2017 at 9:28 am #1061
erictgrubaughFor another choice, I have used Chart.js (http://www.chartjs.org/). Nothing against Google Charts, I simply haven’t used that before.
-
March 14, 2017 at 9:39 am #1062
karennFrom what I am seeing it appears Google Charts cannot be downloaded which means it could not be placed in File Cabinet which is what is going to be required in 2017.1. Maybe I am missing something.
I will check out Charts
david.smith replied on 03/15/2017, 07:37 AM: You don’t need to load it into the file cabinet. Just load it as you would on any other HTML page with the script/css links.
google.charts.load(‘current’, {packages: [‘corechart’]});
google.charts.setOnLoadCallback(drawChart);
…
-
March 14, 2017 at 9:46 am #1063
chanarbonD3 and HighCharts are my personal choice for my graph needs
-
March 14, 2017 at 10:11 am #1064
karennThanks all. Anyone have any good examples of how to use these in a NetSuite Suitelet? Doing this in Html/javascript is one thing. Suitelet is a whole other ballgame
david.smith replied on 03/17/2017, 07:07 AM: Suitelets are a very powerful thing. They take many forms. One of them is pure HTML. Another is a NetSuite Form that can use NetSuite fields and such. Personally, I like to combine the two so that my HTML pages keeps the NetSuite menu but contains my customized HTML.
One quick tip I can give is to save your HTML as a file in the file cabinet. That way you can do all your editing like you normally would. When you go to render your page with your suitelet do something like this.
1) create a new form (so the menu remains)
2) add an inlinehtml field
3) load your html file
4) set the default value of the field to the file contents
5) render your page with form.writepage(…)
Hope that helps some.
-
March 14, 2017 at 12:26 pm #1065
MChammaTXI think NetSuite’s native dashboards use Highcharts. Might be a good option if you want to keep the same look and feel.
-
March 14, 2017 at 12:36 pm #1066
karennCompany is not going to spend money on this if they can avoid it so Highcharts is probably out
-
March 15, 2017 at 3:26 pm #1067
chanarbonTo use D3, in case you plan to use it. You have to use a shim on the require.config() to properly use it as a library for a client suitescript which will be the script that’s drawing the components on your page.
-
AuthorPosts
You must be logged in to reply to this topic.