I’m attempting to create a basic Nivo chart using data obtained from a SQL query. I tested with the sample code provided in the documentation and it shows the chart as it should but once I enter my script the chart is blank. The Data has been tested with a UDChartJS and it works.
I do have a license but I’m not sure if it was properly activated; I copied the contents of the .txt file to “Enter License” in the “License Settings” within localhost:5000.
PS: How do I find out what version of PSU I have and how do I update to the latest or a specific version?
I also noticed that the sample code declares the variables as “Name” and “Value”, but when using the New-UDNivoChart command it uses ‘name’ and “value.” Is the New-UDNivoChart command not case sensitive? If so, why changing it ‘Name’ and “Value” produces a blank chart?
I managed to update to 1.5.3 but once I launched my dashboard all tables and charts were empty, they worked perfectly in 1.4.6. I have all my queries in a separate file, PASSQueries, that I call in my main Dahsboard file by using:
If I want to build a Nivo chart using the data from the table above, what would the script look like? I feel like there isn’t much documentation on how to handle data from SQL or other kinds or relational databases.
EDIT: Nevermind, it had nothing to do with the cache. For some reason it was trying to log me in using my computer number instead of my username. All I had to do was kill a task called Universal.Server. My other questions still remain though,
1. How do you make a Nivo chart from the data above 2. How to properly activate a license
The version number for PSU is listed the footer of the admin console. If you are using the latest version of the UD framework, we can look that up based on the PSU version. All the UD version are listed here and within the frameworks page: Changelog - PowerShell Universal (ironmansoftware.com)
I can put together some SQL examples for the docs site. I’ll make sure to include one for the nivo chart.
On the license page, you should be able to just copy the contents of the file into the text box. If the license is then listed on that page, it has worked. We did just uncover an issue today where if you license the system with a Universal Dashboard license, the authentication switch will be disabled in the dashboards table. We’ll have that resolved in 1.5.4.
Thank you so much! I really appreciate your response, the SQL examples will be VERY helpful!
I downloaded the latest version of PSU from here. Before going to lunch I did notice the footer said 1.5.3 and I had additional fields in the Dashboard page. When I came back from lunch I opened the admin console and now it says 1.4.3 and the “extra” settings are gone. Could it be because I did a MSI upgrade when my initial install was from VS Code?
Seems like a PSU server is starting somewhere you aren’t expecting. If I had to guess, the VS Code extension is starting the one it downloaded and is now an older version of the server.