using a calculated text field as a datasource for sparkline returns an error
See original GitHub issueif datasource is manipulated first via the .JS editor, the console returns this error:
e[a.name].replace is not a function
an example of my .JS script:
var id = datasources["somewhere]["id"];
if(id=="howdy") {
return(datasources["somewhere"]["data"]);
} else {
return(-1);
}
all other freeboard widgets seem to work fine with this custom JS though.
in fact, even writing something like:
return(datasources["somewhere]["data"]);
breaks the sparkline widget
Issue Analytics
- State:
- Created 8 years ago
- Comments:9
Top Results From Across the Web
Everything you ever wanted to know about Sparklines in ...
Sparklines are super-useful, mini charts inside a single cell, created by formulas. Learn how to create them in Google Sheets.
Read more >SPARKLINE Google Sheets Function Explained 2023
With the Google Sheets SPARKLINE function, you can create miniature charts contained within a cell. Learn how it works!
Read more >SSRS Sparklines with Different Data Sources than Tablix
The problem I have is that the sparklines are sourced by 1 MDX query, but the rest of the tablix is sourced by...
Read more >Sparkline in Power BI - RADACAD
Using sparklines is simple, and it is possible in both Matrix and Table visuals in Power BI. To start, build your table visual...
Read more >Build Better Sparklines in Tableau | Smoak Signals
This logic will return the profit associated with the next to last month in the dataset to display on the reference line. //...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m having the same issue. Also a sparkline widget cannot be saved when the js editor is used. Still no solution? Update: just noticed if you omit return and keep it simple it works…
Anyone find a workaround?