TransWikia.com

Why is my BubbleChart so slow?

Mathematica Asked by A. Mustafi on June 17, 2021

I am using the California Housing data to create a Dataset. My Dataset is called "housing" and contains 20000 odd rows with 11 columns. I am trying to make a BubbleChart by using three fields i.e. "longitude", "latitude" and "mean_house_value". While the plot does eventually render it is taking an inordinate amount of time to do so. On my laptop with an i7 Gen 10 processor and 12 GB of RAM, it takes 731 seconds i.e. almost 12 minutes for the plot to render.
My code is given below:

BubbleChart[{#[[1]], #[[2]], #[[3]]/1000} & /@ 
   Normal[housing[
     All, {"longitude", "latitude", 
      "median_house_value"}]]] // AbsoluteTiming

What am I doing wrong? Or is there a better way of doing this?
Appreciate any help.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP