# Feature Request Feasiblity Question: Returning Data as Arrow Instead of Json for Dash Graphs

**URL:** <https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940>\
**Category:** Dash Python\
**Created:** [November 2, 2026, 8:56pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940 "2026-11-02T20:56:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilzagdev](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nilzagdev](https://community.plotly.com/u/nilzagdev)\
**Post date:** [November 2, 2026, 8:56pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/1 "2026-11-02T20:56:10Z")

</div>

Hey guys, was going to raise a github feature request for this but wanted to ask about this in advance and if its even feasible for the project. A couple of weeks ago while on a personal project with plotly-js I came across apache arrow js and how if that we was used, the json serialisation cost and the deserialisation cost are almost instant ie closer to 3ms, and then it doesnt need to decode the data. Even with compared against the orjson version we have.

So in my limited implementation I saw upto 2seconds improvements for larger graphs. I could contribute to the project on github for this feature request but just wanted to ask in advance before I raise it there and here.

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [November 2, 2026, 11:07pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/2 "2026-11-02T23:07:58Z")

</div>

Hi @nilzagdev and welcome to the Dash community.

A 2 second improvement is great. Can you say more about your project? Can you share an example that reproduces the performance improvement?

Did it require changes just in Plotly js, or did the dash Graph component need to change as well?

---

<div class="post-metadata">

**Author:** ![nilzagdev](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nilzagdev](https://community.plotly.com/u/nilzagdev)\
**Post date:** [November 2, 2026, 11:30pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/3 "2026-11-02T23:30:07Z")

</div>

Heya,

The project is similar to what I do at what work where we use plotly.js, plotly python and dash (de as well).

It just maintly about showing future forecasts so stacked line graphs, I need to send a lot of data to render it, and what I did notice was that most of the time was spent spend on serialisation and deserialisation of the data. At work we use Dash, in my personal project I used plotly.js and arrow to serialise and decode the data.

I can share the example over the weekend if thats alrgiht?

On the plotly.js side it wasn’t that complicated at all, instead of json-\>arrow to plotly . Instead of that I used tablefromIPC and Tabletoarray from arrow. It required no actual change on plotly.js.

I am pretty sure I can replicate this over the Dash Python Code as well, it would need to be an optional thing as this would only work with graphs which would be passed in data via arrow format, so only newer pandas, pyarrow or polars

> **[Create a Table when the Arrow file is split across buffers - Apache Arrow -...](https://arrow.apache.org/js/current/#create-a-table-when-the-arrow-file-is-split-across-buffers)**
>
> You can create vector from JavaScript typed arrays with makeVector and from JavaScript arrays with vectorFromArray. makeVector is a lot faster and does not require a copy. | Documentation for Apache Arrow

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [November 2, 2026, 11:36pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/4 "2026-11-02T23:36:53Z")

</div>

Yes, sharing an example later is good - I’m interested to take a look!

---

<div class="post-metadata">

**Author:** ![Robert\_Claus](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/robert_claus/32/32787_2.png) [@Robert\_Claus](https://community.plotly.com/u/Robert_Claus)\
**Post date:** [November 3, 2026, 3:22pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/5 "2026-11-03T15:22:32Z")

</div>

Nevermind! I processed your note about Dash/Python after I wrote this. I think that would be high value!

My original comment: Not to blow up the scope of this idea, but if we introduce a more efficient data format for the data client-side we should also consider whether it could be leveraged directly for the Plotly.py → Plotly.js wire format since that’s the other place serialization-deserialization is currently quite expensive. We saw notable performance improvements when we compressed the data using base64, so I imagine there are more gains possible there!

---

<div class="post-metadata">

**Author:** ![bmaranville](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bmaranville](https://community.plotly.com/u/bmaranville)\
**Post date:** [November 5, 2026, 9:28pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/6 "2026-11-05T21:28:58Z")

</div>

in the GUI for the bumps scientific fitting package, we convert the plotly figures to dict with `fig.to_dict()` then send them over the wire using msgpack instead of JSON , just for speed as described above. We then show them in our web interface with the plotly.js `Plotly.react` function. msgpack is nice because it doesn’t need a schema

---

<div class="post-metadata">

**Author:** ![Adrian\_Borrmann](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adrian_borrmann/32/32836_2.png) [@Adrian\_Borrmann](https://community.plotly.com/u/Adrian_Borrmann)\
**Post date:** [November 9, 2026, 8:39pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/7 "2026-11-09T20:39:26Z")

</div>

Hey @nilzagdev thanks for the suggestion here. We have some work in progress in this PR: [Serialize only the values the JSON encoder cannot take by T4rk1n · Pull Request #4067 · plotly/dash · GitHub](https://github.com/plotly/dash/pull/4067) that will speed up the serialization by using msgspec (if installed). This might address the same performance concern you’re raising here. We could also consider adding arrow support as part of that effort. Have a look and let us know if you think it will help address your concern here!

Cheers,

Adrian

---

<div class="post-metadata">

**Author:** ![alexanderjones](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@alexanderjones](https://community.plotly.com/u/alexanderjones)\
**Post date:** [November 16, 2026, 9:37pm UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/8 "2026-11-16T21:37:16Z")

</div>

Worth separating the two costs: msgspec can cut server-side encoding while the browser still has to parse and materialize the JSON; Arrow mainly helps transfer and client-side decode of large numeric columns. For stacked line traces, the Arrow path would still need to map columns into x/y arrays, so a benchmark reporting encode time, payload size, browser parse/decode time and draw time separately would show whether it is additive to the msgspec PR. Keeping it optional with the existing JSON path as fallback seems sensible.

---

<div class="post-metadata">

**Author:** ![nilzagdev](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nilzagdev](https://community.plotly.com/u/nilzagdev)\
**Post date:** [November 19, 2026, 11:29am UTC](https://community.plotly.com/t/feature-request-feasiblity-question-returning-data-as-arrow-instead-of-json-for-dash-graphs/97940/9 "2026-11-19T11:29:39Z")

</div>

Hi all,

Sorry about the delays got caught with other things

[niltecedu/plotlyjs-arrow-poc](https://github.com/niltecedu/plotlyjs-arrow-poc)  
Detailed figures in

> <https://github.com/niltecedu/plotlyjs-arrow-poc/blob/main/benchmark.md>

Example repo which shows the figures and its results, at work we use arrow + returning as Date Objects optimisation however that would break Dash’s behaviour. You can run the benchmarks along with interactive apps to test this out.

Note that this was done by AI Agents, however we do have similar code being used in our production pipelines and the benchmark was based on that.

So we have two main optimisations:

1. Ie where data is in arrow format, ie pandas with arrow data typres, pyarrow, arro3, polars,etc. We can have almost zero encode and decode of the existing data format which allow it to be super quick.

2. Timestamps in plotly.js can be optimised, internally we pass in Date objects as we like timestamps to be in the user’s browser time however there is also current behaviour maintaining patch that is also available there which is actually even more faster.

Also note that these were done on our laptop locally, we see a bigger speed up for when deployed to actual network. For us our servers are in cloud and some offices have 1Gbit links where the difference is bigger and also the makes stuff like compressions figures look wayy better.

So @Adrian_Borrmann @AnnMarieW this would be alongside msgspec rather than a replacement, its more of a if arrow data exists, use the free and faster path.
