https://linen.dev logo
Join Discord
Powered by
# custom-charts
  • k

    Keith Barlow

    12/19/2024, 10:16 PM
    Updated code... I added chartConfig and visual props... The selected field does not automatically map in the chartConfig... is that something I have to code?
    appgaugechart
  • k

    Keith Barlow

    12/19/2024, 10:17 PM
    Console log...
    explore-guidewire-dev-needle-thoughtspot-cloud-1734646596681
  • k

    Keith Barlow

    12/19/2024, 10:18 PM
    If I don't replace the
    hasInitialized
    as noted in my original message, it doesn't appear to try and render the chart in the vercel app. However, when connecting the actual TS instance, it does but fails. The console logs show what happens.
  • k

    Keith Barlow

    12/20/2024, 7:33 PM
    @Harshmeet Wondering if you have had a chance to look at ☝️ ? I think it's calling the emitRenderComplete before initialized goes true but I tried adding hasInitialized to the if conditions and that didn't help... what does hasInitialized represent?
  • m

    mad1

    12/26/2024, 9:22 AM
    Hey Folks, I am using a Pivot table chart and have multiple attribute in there at row level, I want the measure to be displaying the values as per the levels, but it is only showing the value at the first and the final level and not the between once, how can that be achieved, is there any possibility to do so?
  • h

    Harshmeet

    01/02/2025, 7:57 AM
    hey @Keith Barlow HasInitialized represents when Initialize event is triggered from TS, chartModel updates after the initialize is triggered
  • h

    Harshmeet

    01/02/2025, 7:58 AM
    hey @Keith Barlow I am not sure what you mean by chartConfig does not automatically map, can you please elaborate on that
  • h

    Harshmeet

    01/02/2025, 7:59 AM
    @mad1 would you be able to share a screenshot of what you mentioned for better clarity ?
  • What I meant by the chartConfig does not
    k

    Keith Barlow

    01/02/2025, 7:34 PM
    What I meant by the chartConfig does not automatically map is that it seems the column I selected in the search bar is not getting automatically mapped as a selected column in my chart... is there something I need to do to configure that?
    h
    • 2
    • 1
  • k

    Keith Barlow

    01/02/2025, 9:16 PM
    If I disable all breakpoints and just let it run, after filling in the Settings and selecting the visualized column, I think I am getting context not initialized when it gets into the custom chart component... Any idea why that would be?
  • Harshmeet... I can give you access to
    k

    Keith Barlow

    01/03/2025, 4:24 PM
    Harshmeet... I can give you access to our instance if you can provide me with an email to share some credentials. Or we can set up a time to meet next week and I can show you. I could use some help debugging this. Thanks.
    h
    • 2
    • 2
  • k

    Keith Barlow

    01/07/2025, 5:33 PM
    Harshmeet... they might have been suppressed in my last screenshot but I think I am getting errors from the Data Query executions:
  • h

    Harshmeet

    01/09/2025, 9:34 AM
    these errors are coming from a timeout we have fixed it in 10.6 version if its older than that you can just ignore
  • m

    mad1

    01/24/2025, 5:39 AM
    Hey Folks, do we have Hierarchy-based filter in the ThoughtSpot ? Something mentioned in ss https://cdn.discordapp.com/attachments/1260701577874903163/1332223164515749960/image.png?ex=67947901&is=67932781&hm=78202cf3725d14e8e2cef9db1e9bfc5010727077b96d9318d6427b951dde07ed&
  • u

    Ujjal Dutta

    01/24/2025, 5:42 AM
    Hey @mad1 , No we don't have a component support for this at this moment.
  • m

    mad1

    01/24/2025, 5:44 AM
    Hey @Ujjal Dutta , any alternate solution we have in this to implement this requirement ?
  • ThoughtSpot Viz/Charts Support
    u

    Ujjal Dutta

    01/24/2025, 5:46 AM
    Since you have full control on the index.html for the BYOC context. You can create this component in the Chart Area itself and hook the filters as per your logic. Maybe a filter menu at the corner which on clicking expose this nested filter component.
    m
    • 2
    • 3
  • k

    Keith Barlow

    02/11/2025, 3:01 PM
    Sorry... I missed this reply... thanks for letting me know.
  • a

    Aparnaa Marimuthu

    02/12/2025, 10:30 AM
    Hi ThoughtSpot Team! The ThoughtSpot getChartContext() function from the TS library is not allowing me to re-render the chart. Additionally, I see TS-Playground: Message Received errors in the console every time I attempt to update styles. How can I dynamically update the chart’s appearance without reinitializing getChartContext()? Is there a recommended way ? https://cdn.discordapp.com/attachments/1260701577874903163/1339181898446016562/Screenshot_2025-02-12_151837.png?ex=67adc9d5&is=67ac7855&hm=f28af39f143c27bc182858ebccdff8cd3350d883f0895eff5f3a1316d0fa0b2d&
  • h

    Harshmeet

    02/26/2025, 7:57 AM
    @Aparnaa Marimuthu if you need to update styles its adviced do to the that in chart renderFunction, store these style values in clientState variable inside visualProps in Custom chart context and read them from context inside your render prop and update accordingly. Once you click on apply emitEvent UpdateVisualProps with updated values from form in clientState variable in paylaod, this event automatically retriggers render chart and you can read these values from context and update appearance accordingly let me know if you need any more help
  • s

    Sahithi Challa

    03/06/2025, 2:03 PM
    Hi @Harshmeet / Thoughtspot team, The custom gantt has rendered on thoughtspot but after 1 minute, it's throwing a timeout error. BTW trying the documention gantt chart code. Need some help on this. https://cdn.discordapp.com/attachments/1260701577874903163/1347207924065239060/Screenshot_2025-03-06_at_7.30.55_PM.png?ex=67cafca7&is=67c9ab27&hm=421be8b6fb1078d4095416b4b390b76571ab8e46d85a9c9c02fbe3f4f982b31d& https://cdn.discordapp.com/attachments/1260701577874903163/1347207924497387654/Screenshot_2025-03-06_at_7.26.07_PM.png?ex=67cafca7&is=67c9ab27&hm=87f779a396b9aa9fffeb68bbd91188dcafef4740528b23e7d93cb9842f07240d& https://cdn.discordapp.com/attachments/1260701577874903163/1347207924962824264/Screenshot_2025-03-06_at_7.32.46_PM.png?ex=67cafca7&is=67c9ab27&hm=9dfc23bbd8ca77ec0924fe595945e70407910a7640957ea06c9d5d099aaf5f46&
  • h

    Harshmeet

    03/07/2025, 6:30 AM
    @Sahithi Challa Can you share the deployed chart URL I will take a look
  • s

    Sahithi Challa

    03/07/2025, 9:28 AM
    @Harshmeet URL : https://byoc-test-ts.s3.us-west-2.amazonaws.com/byoc/dist/index.html This is a hosted in static S3 bucket
  • h

    Harshmeet

    03/07/2025, 2:36 PM
    @Sahithi Challa once your chart render is complete please pass ctx.emitEvent(ChartToTSEvent.RenderComplete); where ctx is the custom chart context returned by getChartContext, also for any sort of codeflow or if you face any issues like this refer our https://github.com/thoughtspot/ts-chart-sdk/tree/main/example/custom-bar-chart, custom bar chart example that's the most upto date.
  • s

    Sahithi Challa

    03/11/2025, 11:42 AM
    Hi @Harshmeet Want to connect over a call to check on this. So can you share your availability.
  • h

    Harshmeet

    03/12/2025, 4:27 AM
    @Sahithi Challa does 1:30 pm today IST work for you or maybe sometime later in the evening today works for me ?
  • s

    Sahithi Challa

    03/12/2025, 11:38 AM
    I am scheduling the call for the evening, let me know if that doesnot work.
  • s

    seansy-archy

    04/29/2025, 5:03 PM
    I had a question regarding embeds with custom charts. Embedding thoughtspot already requires one iframe. It seems like [custom charts are hosted in an additional iframe](https://docs.thoughtspot.com/cloud/10.8.0.cl/chart-custom). This cascade of synchronous page loads is not acceptable for our customers, is there a way to use custom charts and embeds without a doubly nested iframe? Also, wouldn't this mean we'd have N+1 iframes where the number of custom charts in your embed is N?
  • h

    Harshmeet

    05/02/2025, 10:33 AM
    @seansy-archy currently we use iframes for Custom chart and support is not there for loading a custom chart without iframe, also there will not be N+1 nesting if there are N Custom charts, in Embedd case TS is being rendered inside an Iframe and the TS cluster then loads Custom charts with iframes, so at max there can only nesting till one level
  • n

    Neerav

    05/06/2025, 11:07 AM
    AMA & Code-Along: BYOC – Bring Your Own Charts into ThoughtSpot Ever wish you could use your own charting libraries—like Chart.js, D3, ECharts, or anything else—with ThoughtSpot data? This week’s AMA + code-along is for you. We’re going beyond native visualizations to show you how to bring your own charts into your embedded ThoughtSpot app using the Liveboard runtime APIs. 🔧 What you’ll learn: How to fetch and wire up ThoughtSpot data using the Liveboard runtime APIs Render custom visualizations using your favorite charting libraries Explore real-world use cases where BYOC can unlock flexibility for your users Q&A with the product team—bring your implementation challenges! **When: Wednesday, 10:00 AM PST Where: Register here: https://thoughtspot.zoom.us/webinar/register/WN_m9OENPQpTkWclADeudahwA Who should join: Frontend engineers, dashboard builders, and anyone who’s ever said “I wish I could use my own chart…” Let’s go beyond the default - see you Wednesday!