question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

using a calculated text field as a datasource for sparkline returns an error

See original GitHub issue

if 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:open
  • Created 8 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
Ultibladecommented, Oct 22, 2015

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…

0reactions
gigagacommented, Oct 17, 2018

Anyone find a workaround?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found