Skip to main content

Has anyone worked with HighCharts Modules/Add-ons in Info??

Comments

5 comments

  • Blake

    I don't think this is exactly what you want, but maybe some guidance on how to push data in...There is a charts API...not as clean as a data layer, but maybe it can spark an idea???

    https://devnet.logianalytics.com/hc/en-us/articles/4406817021847-Logi-JavaScript-API-for-Chart-Canvas-Charts

    More specifically,

    https://devnet.logianalytics.com/hc/en-us/articles/4406817024279-Setting-JSON-Chart-Data#JSON 

    0
  • Johnny Stevens

    Thanks Blake!

    I was already aware of the beforeCreateChart event/doc. The new Doc is super frustrating in that I already had the link to https://devnet.logianalytics.com/hc/en-us/articles/4406822110359-Events-beforeCreateChart-and-afterCreateChart#afterCreateChart, but had no idea that there was other information in this page's functional area of "Logi Javascript API...". I miss having the long pages with all of the info for a topic and jump links from the TOC.

    More to this topic... the "Seting JSON Chart data" appears to be used for generating or appending JSON data to an existing dataset or chart. I think I'm trying to do the opposite - Call a beforeCreateChart event to re-shape the Info data into the format that the HighCharts module is expecting. I'm hoping there is some simple way of setting up Tokens or something in the JS so that I can create the array like:

    xAxis: {
        categories: [{
            name: '@Data.DatePeriod~',
            categories: [@SingleQuote.Data.GroupBy~]
        }]
    }

    I'm not well versed in Javascript and it is tough to search on this because all of the HighCharts tutorials/info assumes I am working specifically with HighCharts. I'm actually 'hacking' Logi Info's use of HighCharts and just want to add another element/function to the existing output.

    0
  • Blake

    Johnny Stevens I'll see if I can look into this more today.

    +10000000000000 on bringing back the long scrolling pages.  The documentation seems a bit fragmented at this point and I really struggle to find what I need.  Maybe @... can help with this. 

    0
  • Blake

    If I remember correctly you use MySql.  Does MySql have JSON capabilities?  In SQL Server I'd write my query to convert to JSON.  You could create a new Data definition and then reference that URL or file as input to your JavaScript.

    Here is the link to data definitions 
    https://devnet.logianalytics.com/hc/en-us/articles/4402879547287-Creating-a-JSON-Data-Definition#JSONDef

    Hopefully, I can get some time later to mess around with this.

    0
  • Johnny Stevens

    Just to keep everyone updated... we are contracting with VISUI and John Sweazen for this integration work. John was the first to recommend this approach in my original Forum post here.

    0

Please sign in to leave a comment.