Forum Discussion

gwolfe's avatar
gwolfe
Data Pipeline
05-09-2022
Solved

Dynamic Sparkline Width

Hi, I have 2 questions about formatting sparklines in BloX. 1. Is there a way to make the width of the sparkline dynamic, rather than hard coding it? 2. How can I remove all the white space above...
  • gwolfe's avatar
    05-09-2022

    I figured I can just set the width using a %. 

    "text": "<span class='blox-sparkline' type='line' line-color='#117899' width='85%' height='65' line-width='3' fill-color='#B2D4DF' point-color:'#117899'>{spark:InvoicedByMonth}</span>",
  • gwolfe's avatar
    05-09-2022

    I was able to hide the title, and then change the padding on the configuration tab. 

        "titleStyle": [
            {
                "display": "none"
            }