Html export - connect table data with external components

In this sample we have connected the exported table to Google charts with javascript. The table data is imported to EPPlus via the LoadFromDataTable function and the Density column is a calculated table column. The total row of the table is calculated via EPPlus built in Total row functions.

The table has addtional classes from Bootstrap: table and table-sm

Country Population Area (km2) Density
Russia 145,734,038 3,972,400 km2 36.7
Germany 83,124,418 357,386 km2 232.6
United Kingdom 67,141,684 242,495 km2 276.9
France 64,990,511 551,695 km2 117.8
Italy 60,627,291 301,338 km2 201.2
Spain 47,394,223 498,468 km2 95.1
Ukraine 44,246,156 603,628 km2 73.3
Poland 37,921,592 312,685 km2 121.3
Romania 19,186,000 238,397 km2 80.5
Netherlands 17,553,530 41,198 km2 426.1
Belgium 11,521,238 30,510 km2 377.6
Greece 10,718,565 131,940 km2 81.2
Czech Republic 10,665,677 78,866 km2 135.2
Sweden 10,409,248 450,295 km2 23.1
Portugal 10,256,193 91,568 km2 112.0
Hungary 9,707,499 93,030 km2 104.3
Belarus 9,452,617 207,600 km2 45.5
Austria 8,891,388 83,858 km2 106.0
Switzerland 8,525,611 41,290 km2 206.5
Bulgaria 7,051,608 110,994 km2 63.5
Serbia 6,871,547 77,453 km2 88.7
Denmark 5,850,189 44,493 km2 131.5
Finland 5,541,806 338,145 km2 16.4
Slovakia 5,459,781 49,036 km2 111.3
Norway 5,402,171 385,178 km2 14.0
Ireland 4,818,690 70,273 km2 68.6
Croatia 4,156,405 56,594 km2 73.4
Moldova 4,033,963 33,846 km2 119.2
Bosnia and Herzegovina 3,323,925 51,129 km2 65.0
Albania 2,882,740 28,748 km2 100.3
Lithuania 2,801,264 65,300 km2 42.9
North Macedonia 2,083,374 25,713 km2 81.0
Slovenia 2,055,496 20,273 km2 101.4
Latvia 1,928,459 64,589 km2 29.9
Kosovo 1,798,506 10,908 km2 164.9
Estonia 1,322,920 45,339 km2 29.2
Cyrprus 1,189,265 9,251 km2 128.6
Montenegro 627,809 13,812 km2 45.5
Iceland 336,713 102,775 km2 3.3
Total 747,604,110 9,932,496 km2 Avg: 111.1