maybe?

```
self.write_raw_histogram_to_buffer(sio_buffer)
encoded_histogram = self.convert_raw_histogram_to_base64_string(sio_buffer)

# somehow pass encoded_histogram into the template for rendering
```