Html export - Google line chart

This table contains over 2 000 currency rates and is connected to a Google charts line chart. The rates are imported to EPPlus from a .csv file using the LoadFromText function and exported to css/html using table style Light2.

Loading chart...
DateGBPEURAUDCAD
2021-11-110.74640.87261.36991.2582
2021-11-040.73770.86441.34861.2417
2021-10-280.72780.86261.32931.2357
2021-10-210.72430.85931.33441.2339
2021-10-140.72930.86191.34841.2378
2021-10-070.73540.86491.36991.2580
2021-09-300.74320.86361.39001.2739
2021-09-230.72980.85361.37521.2676
2021-09-160.72280.85011.36671.2635
2021-09-090.72270.84471.35451.2673
2021-09-020.72530.84421.35391.2615
2021-08-260.72850.84981.37721.2610
2021-08-190.73120.85501.39531.2756
2021-08-120.72190.85191.35981.2517
2021-08-050.71780.84391.34941.2504
2021-07-290.71660.84221.35281.2472
2021-07-220.72660.84931.35531.2551
2021-07-150.72140.84681.34441.2540
2021-07-080.72760.84471.34791.2581
2021-07-010.72390.84151.33251.2368
2021-06-240.71950.83781.32001.2297
2021-06-170.71650.83771.32051.2330
2021-06-100.70880.82141.29221.2107
2021-06-030.70530.82051.29581.2070
2021-05-270.70560.81981.29141.2089
2021-05-200.70800.81951.28951.2110
2021-05-130.71240.82771.29731.2139
2021-05-060.71900.82921.28911.2242
2021-04-290.71650.82451.28241.2286
2021-04-220.72100.83021.29351.2508
2021-04-150.72480.83541.29061.2494
2021-04-080.72680.84221.30881.2589
2021-04-010.72530.85141.31961.2589
2021-03-250.72930.84731.31741.2582
2021-03-180.71840.83951.28841.2445
2021-03-110.71580.83551.28531.2575
2021-03-040.71690.83101.28381.2642
2021-02-250.70680.81801.25291.2480
2021-02-180.71620.82751.28421.2667
2021-02-110.72240.82321.28741.2665
2021-02-040.73100.83361.31101.2803
2021-01-280.73280.82711.31621.2872
2021-01-210.72890.82251.28601.2621
2021-01-140.73360.82481.29021.2686
2021-01-070.73470.81461.29001.2709
2020-12-310.73260.81491.29541.2740
2020-12-240.73640.82011.31541.2840
2020-12-170.73530.81661.31081.2695
2020-12-100.75200.82541.33401.2758
2020-12-030.74360.82301.34651.2914
2020-11-260.74900.84031.35821.3002
2020-11-190.75540.84521.37531.3101
2020-11-120.76130.84811.37931.3097
2020-11-050.76300.84351.37971.3056
2020-10-290.77260.85441.42461.3378
2020-10-220.76370.84601.40801.3162
2020-10-150.77390.85481.41511.3210
2020-10-080.77380.85001.39581.3245
2020-10-010.77200.85091.38861.3288
2020-09-240.78340.85871.42031.3396
2020-09-170.77590.84771.36921.3196
2020-09-100.77300.84401.37411.3154
2020-09-030.75460.84651.37301.3114
2020-08-270.75810.84701.37991.3147
2020-08-200.76100.84391.39611.3210
2020-08-130.76370.84511.39631.3215
2020-08-060.76020.84441.39261.3297
2020-07-300.76870.85161.40051.3430
2020-07-230.78830.86441.40431.3386
2020-07-160.79620.87611.43141.3538
2020-07-090.79050.88171.43181.3502
2020-07-020.79940.88611.44391.3595
2020-06-250.80480.89291.45721.3645
2020-06-180.80220.89111.45751.3561
2020-06-110.79010.88121.44701.3501
2020-06-040.79720.88891.44681.3514
2020-05-280.81450.90781.50911.3757
2020-05-210.81770.90911.51911.3918
2020-05-140.82000.92661.55721.4107
2020-05-070.81130.92741.54911.4075
2020-04-300.79910.91951.52611.3863
2020-04-230.80950.92831.57061.4135
2020-04-160.80050.91841.58581.4106
2020-04-090.80580.92021.60521.4047
2020-04-020.80450.91691.64771.4167
2020-03-260.83190.91071.65391.4084
2020-03-190.86090.92581.72531.4464
2020-03-120.78850.88971.57241.3811
2020-03-050.77470.89391.51221.3427
2020-02-270.77520.91211.52061.3349
2020-02-200.77700.92681.51011.3257
2020-02-130.76720.92021.48501.3257
2020-02-060.77100.90881.47981.3278
2020-01-300.76330.90671.48811.3217
2020-01-230.76190.90161.45601.3163
2020-01-160.76520.89531.44281.3035
2020-01-090.76760.90011.45751.3056
2020-01-020.75790.89341.43001.2998
2019-12-260.77200.90251.44581.3161
2019-12-190.76530.89951.45611.3122
2019-12-120.75930.89791.45151.3178
2019-12-050.76140.90141.46481.3169
2019-11-280.77400.90871.47691.3289
2019-11-210.77130.90161.46801.3307
2019-11-140.77880.90931.47431.3265
2019-11-070.78040.90281.44981.3167
2019-10-310.77220.89651.44671.3155
2019-10-240.77540.89861.46231.3071
2019-10-170.78140.89981.46621.3177
2019-10-100.81740.90661.47841.3307
2019-10-030.81080.91321.48791.3338
2019-09-260.80920.91421.47761.3240
2019-09-190.80180.90361.47201.3270
2019-09-120.81110.91221.45431.3197
2019-09-050.81010.90431.46591.3205
2019-08-290.81770.90321.48141.3276
2019-08-220.82240.90231.47791.3283
2019-08-150.82390.89691.47461.3310
2019-08-080.82300.89341.47261.3289
2019-08-010.82590.90601.46191.3230
2019-07-250.80040.89971.43441.3127
2019-07-180.80110.89161.42151.3062
2019-07-110.79570.88611.43151.3057
2019-07-040.79490.88591.42421.3066
2019-06-270.78650.87951.42931.3129
2019-06-200.78850.88441.44361.3165
2019-06-130.78790.88581.44711.3306
2019-06-060.78610.88761.43191.3400
2019-05-300.79200.89811.44581.3498
2019-05-230.79090.89771.45431.3466
2019-05-160.78070.89261.44721.3424
2019-05-090.76940.89341.43361.3484
2019-05-020.76640.89191.42441.3436
2019-04-250.77710.89901.43001.3506
2019-04-180.76860.88891.39721.3391
2019-04-110.76500.88781.39911.3376
2019-04-040.76140.89131.40661.3359
2019-03-280.76270.89141.41291.3430
2019-03-210.76100.87821.40381.3339
2019-03-140.75460.88531.41921.3346
2019-03-070.76200.88721.42081.3425
2019-02-280.75190.87601.40051.3176
2019-02-210.76450.88071.40651.3168
2019-02-140.78050.88751.40651.3267
2019-02-070.77350.88141.40631.3266
2019-01-310.76230.87051.37421.3152
2019-01-240.76790.88181.40791.3367
2019-01-170.77450.87751.39481.3297
2019-01-100.78390.86691.38981.3221
2019-01-030.79580.88121.43521.3564
2018-12-270.79170.87901.42051.3624
2018-12-200.78890.87331.40161.3470
2018-12-130.79020.87941.38331.3361
2018-12-060.78350.88101.38711.3416
2018-11-290.78280.87821.36341.3276
2018-11-220.77700.87701.37871.3219
2018-11-150.78170.88461.37671.3223
2018-11-080.76300.87541.37151.3106
2018-11-010.77390.87771.39181.3082
2018-10-250.77550.87601.40991.3046
2018-10-180.76350.86921.40101.3046
2018-10-110.75590.86391.40941.3047
2018-10-040.77010.86941.41141.2867
2018-09-270.76000.85421.38381.3070
2018-09-200.75270.84971.37291.2893
2018-09-130.76590.86061.39131.3005
2018-09-060.77210.85951.38941.3184
2018-08-300.76770.85531.36971.2929
2018-08-230.77620.86361.37211.3031
2018-08-160.78710.87951.37621.3142
2018-08-090.77580.86261.34791.3035
2018-08-020.76740.86081.35841.3036
2018-07-260.75840.85351.34791.3048
2018-07-190.77060.86301.36381.3247
2018-07-120.75710.85781.35341.3183
2018-07-050.75420.85401.35121.3130
2018-06-280.76420.86331.36221.3294
2018-06-210.75720.86671.35761.3331
2018-06-140.74750.85251.32261.2977
2018-06-070.74450.84491.30591.2938
2018-05-310.74950.85481.31751.2854
2018-05-240.74590.85271.32321.2885
2018-05-170.73990.84711.32831.2772
2018-05-100.73930.84191.33571.2773
2018-05-030.73530.83391.32811.2845
2018-04-260.71580.82181.32071.2835
2018-04-190.70240.80761.28351.2604
2018-04-120.70390.81151.28971.2592
2018-04-050.71280.81571.30021.2772
2018-03-290.71010.81161.30151.2901
2018-03-220.70800.81201.29701.2901
2018-03-150.71700.81031.27501.2985
2018-03-080.72030.80511.28111.2917
2018-03-010.72730.82161.29371.2862
2018-02-220.71960.81461.27881.2699
2018-02-150.70970.80041.26131.2490
2018-02-080.71430.81621.28091.2571
2018-02-010.70250.80261.24951.2319
2018-01-250.70150.80601.23781.2323
2018-01-180.72090.81731.25141.2447
2018-01-110.74120.83221.27161.2560
2018-01-040.73850.82881.27631.2527
2017-12-280.74380.83791.28461.2610
2017-12-210.74850.84321.30291.2804
2017-12-140.74430.84421.30451.2829
2017-12-070.74720.84851.33061.2838
2017-11-300.74260.84401.32151.2885
2017-11-230.75120.84401.31091.2681
2017-11-160.75770.84951.31741.2764
2017-11-090.76210.85981.30211.2708
2017-11-020.76160.85871.29821.2847
2017-10-260.75730.85081.29741.2798
2017-10-190.75900.84501.27031.2458
2017-10-120.76110.84351.27991.2470
2017-10-050.75930.85161.27871.2481
2017-09-280.74410.84901.27811.2467
2017-09-210.74120.84001.26011.2358
2017-09-140.74990.84141.25171.2201
2017-09-070.76350.83541.24681.2185
2017-08-310.77780.84571.26991.2660
2017-08-240.77930.84701.26641.2522
2017-08-170.77710.85491.26151.2625
2017-08-100.76970.85241.26901.2720
2017-08-030.76150.84321.25991.2606
2017-07-270.76090.85511.25001.2488
2017-07-200.77250.87071.26341.2614
2017-07-130.77270.87591.29371.2756
2017-07-060.77310.87831.31821.2936
2017-06-290.77100.87621.30271.3026
2017-06-220.78940.89531.32621.3298
2017-06-150.78490.89561.31851.3278
2017-06-080.77260.89061.32641.3514
2017-06-010.77750.89131.35321.3508
2017-05-250.77160.89171.33961.3432
2017-05-180.76700.89861.34401.3643
2017-05-110.77790.92081.35701.3726
2017-05-040.77570.91521.35201.3737
2017-04-270.77580.91901.33961.3586
2017-04-200.78100.93071.32881.3489
2017-04-130.79740.94071.31961.3235
2017-04-060.80250.93761.32221.3428
2017-03-300.80260.93141.30281.3337
2017-03-230.79990.92711.31021.3339
2017-03-160.80930.93231.30011.3311
2017-03-090.82130.94781.33111.3527
2017-03-020.81380.95111.31631.3381
2017-02-230.80040.94581.29491.3116
2017-02-160.79900.93881.29631.3016
2017-02-090.79580.93531.30611.3109
2017-02-020.79630.92521.30091.3000
2017-01-260.79570.93461.32761.3129
2017-01-190.81140.93741.32291.3282
2017-01-120.81320.93641.33021.3057
2017-01-050.81360.95231.37141.3300
2016-12-290.81600.95671.38761.3541
2016-12-220.81050.95751.38551.3468
2016-12-150.80240.95981.35421.3343
2016-12-080.78980.92921.33861.3215
2016-12-010.79140.94101.35301.3400
2016-11-240.80390.94801.35321.3493
2016-11-170.80300.93311.33981.3426
2016-11-100.80570.91791.31581.3482
2016-11-030.80130.90381.30461.3389
2016-10-270.81590.91521.31231.3366
2016-10-200.81570.91071.30361.3169
2016-10-130.81930.90601.32311.3245
2016-10-060.78970.89411.31981.3204
2016-09-290.76760.89121.30491.3085
2016-09-220.76460.88981.30571.3012
2016-09-150.75700.88861.33611.3178
2016-09-080.74860.88531.29531.2877
2016-09-010.75410.89721.32791.3129
2016-08-250.75790.88571.31441.2929
2016-08-180.76030.88331.30431.2829
2016-08-110.77140.89661.29651.3054
2016-08-040.75970.89801.31141.3053
2016-07-280.75940.90171.32871.3161
2016-07-210.75890.90791.33551.3051
2016-07-140.74670.89631.30751.2926
2016-07-070.76790.90251.33011.2931
2016-06-300.74450.90071.34471.2956
2016-06-230.67250.87801.32231.2747
2016-06-160.70730.89491.36141.3003
2016-06-090.69150.88161.34441.2747
2016-06-020.69120.89381.38681.3105
2016-05-260.68020.89541.38621.2932
2016-05-190.68400.89311.38991.3110
2016-05-120.69270.87801.36461.2814
2016-05-050.68940.87421.33461.2820
2016-04-280.68530.88041.31241.2557
2016-04-210.69300.88071.27661.2634
2016-04-140.70710.88871.29841.2828
2016-04-070.71040.88001.32811.3117
2016-03-310.69530.87831.30061.2945
2016-03-240.70770.89651.33211.3288
2016-03-170.69150.88411.31091.2997
2016-03-100.70670.92111.33761.3285
2016-03-030.71030.91731.36241.3434
2016-02-250.71570.90691.38681.3626
2016-02-180.69600.90221.39811.3685
2016-02-110.69390.88131.41171.3961
2016-02-040.68350.89241.38731.3712
2016-01-280.69910.91721.41421.4085
2016-01-210.70850.91801.44631.4459
2016-01-140.69500.91801.44081.4364
2016-01-070.68590.92011.43081.4133
2015-12-310.67420.91851.36831.3884
2015-12-240.67070.91351.37701.3870
2015-12-170.67020.92241.39261.3832
2015-12-100.66120.91381.37071.3540
2015-12-030.66740.93711.36351.3319
2015-11-260.66230.94231.38381.3305
2015-11-190.65480.93571.39661.3290
2015-11-120.65860.93231.40531.3326
2015-11-050.65480.91891.39971.3158
2015-10-290.65570.91491.41321.3185
2015-10-220.64650.88391.38711.3124
2015-10-150.64660.87421.36481.2900
2015-10-080.65450.88861.39191.3047
2015-10-010.66050.89661.41461.3269
2015-09-240.65710.88961.43641.3379
2015-09-170.64410.88401.39461.3194
2015-09-100.64960.89411.41541.3252
2015-09-030.65410.89061.42801.3263
2015-08-270.64800.88621.39931.3226
2015-08-200.63830.89421.36701.3126
2015-08-130.63970.90021.36111.3012
2015-08-060.64440.91871.36421.3168
2015-07-300.63990.91281.37521.2980
2015-07-230.64040.90921.34961.2975
2015-07-160.64240.92021.35391.2947
2015-07-090.64920.90461.34031.2685
2015-07-020.64190.90371.31691.2618
2015-06-250.63590.89241.29191.2384
2015-06-180.62850.87691.27761.2160
2015-06-110.64690.89031.29391.2321
2015-06-040.64980.88361.29171.2449
2015-05-280.65380.91781.30941.2476
2015-05-210.63770.89821.26761.2216
2015-05-140.63320.87571.23361.1949
2015-05-070.65680.88461.25481.2070
2015-04-300.64800.89171.26271.2020
2015-04-230.66560.92831.29381.2226
2015-04-160.67120.93361.28751.2305
2015-04-090.67460.92821.29491.2524
2015-04-020.67550.92341.32441.2644
2015-03-260.67170.91131.27491.2442
2015-03-190.67280.93661.30801.2717
2015-03-120.66810.94221.29761.2656
2015-03-050.65510.90341.28331.2440
2015-02-260.64510.88361.26861.2470
2015-02-190.64800.87821.28501.2520
2015-02-120.65110.88281.30311.2560
2015-02-050.65570.87641.28101.2524
2015-01-290.66080.88381.28461.2531
2015-01-220.65790.86071.23081.2354
2015-01-150.65530.85411.20801.1834
2015-01-080.66370.84981.23371.1816
2015-01-010.64150.82371.22141.1583
2014-12-250.64370.81841.23191.1592
2014-12-180.64020.81401.22141.1598
2014-12-110.63780.80461.21151.1491
2014-12-040.63850.81231.19341.1370
2014-11-270.63460.80131.16671.1249
2014-11-200.63710.79751.16161.1325
2014-11-130.63520.80281.14431.1329
2014-11-060.62810.79891.16081.1409
2014-10-300.62490.79381.13601.1172
2014-10-230.62390.78931.13691.1215
2014-10-160.62510.78441.14871.1331
2014-10-090.61700.78351.12891.1110
2014-10-020.61940.79171.13951.1137
2014-09-250.61390.78671.13531.1120
2014-09-180.61240.77691.11791.1000
2014-09-110.61560.77351.09701.1012
2014-09-040.60950.76831.07011.0880
2014-08-280.60290.75881.06841.0844
2014-08-210.60270.75401.07701.0964
2014-08-140.59940.74781.07341.0891
2014-08-070.59400.74811.07821.0933
2014-07-310.59260.74741.07601.0920
2014-07-240.58800.74231.05941.0725
2014-07-170.58480.73941.06661.0748
2014-07-100.58440.73511.06731.0670
2014-07-030.58370.73281.06641.0648
2014-06-260.58730.73501.06281.0714
2014-06-190.58730.73421.06301.0829
2014-06-120.59420.73921.06321.0859
2014-06-050.59730.73711.07671.0940
2014-05-290.59840.73461.07611.0854
2014-05-220.59290.73161.08271.0912
2014-05-150.59680.73211.06811.0868
2014-05-080.59010.71671.06481.0876
2014-05-010.59420.72201.07921.0968
2014-04-240.59550.72361.07931.1025
2014-04-170.59490.72181.06981.1009
2014-04-100.59650.72111.06241.0902
2014-04-030.60250.72621.08291.1017
2014-03-270.60160.72681.08291.1093
2014-03-200.60640.72661.10861.1268
2014-03-130.59920.71731.10261.1066
2014-03-060.59910.72751.10351.1031
2014-02-270.60070.73231.11941.1131
2014-02-200.59970.72961.11401.1082
2014-02-130.60070.73131.11571.1003
2014-02-060.61410.74101.11531.1060
2014-01-300.60690.73671.13891.1180
2014-01-230.60250.73321.13941.1144
2014-01-160.61200.73551.13681.0922
2014-01-090.60660.73461.12721.0858
2014-01-020.60640.73221.12931.0631
2013-12-260.61100.73081.12031.0610
2013-12-190.61090.73171.13011.0719
2013-12-120.60960.72601.10421.0578
2013-12-050.61150.73561.10621.0657
2013-11-280.61220.73571.09731.0577
2013-11-210.61980.74231.07901.0473
2013-11-140.62310.74431.07581.0499
2013-11-070.62260.74821.05411.0430
2013-10-310.62330.73311.05221.0447
2013-10-240.61840.72441.03981.0401
2013-10-170.62040.73201.03921.0298
2013-10-100.62670.73901.06021.0385
2013-10-030.61750.73561.06661.0338
2013-09-260.62360.74081.06601.0304
2013-09-190.62160.73831.05291.0210
2013-09-120.63280.75241.08101.0320
2013-09-050.63860.75751.09461.0481
2013-08-290.64440.75381.11861.0495
2013-08-220.64180.75061.11181.0496
2013-08-150.64170.75201.09241.0327
2013-08-080.64520.74851.10221.0411
2013-08-010.65670.75551.11311.0298
2013-07-250.65420.75751.08981.0296
2013-07-180.65750.76381.09141.0418
2013-07-110.66150.76661.08571.0405
2013-07-040.66220.77021.09671.0544
2013-06-270.65460.76731.07391.0435
2013-06-200.64730.75761.08511.0342
2013-06-130.63800.75101.04541.0170
2013-06-060.64730.76231.05121.0313
2013-05-300.66110.77261.04241.0378
2013-05-230.66350.77591.03211.0350
2013-05-160.65590.77581.01781.0194
2013-05-090.64250.76090.97841.0036
2013-05-020.64180.75810.97571.0071
2013-04-250.64660.76450.96861.0225
2013-04-180.65530.76660.96841.0243
2013-04-110.64940.76230.94601.0094
2013-04-040.66110.78020.95881.0151
2013-03-280.66040.78090.96121.0169
2013-03-210.65970.77460.95861.0233
2013-03-140.66920.77300.96581.0264
2013-03-070.66490.76860.97501.0317
2013-02-280.65730.76170.97561.0253
2013-02-210.65540.75840.97521.0190
2013-02-140.64490.75040.96641.0012
2013-02-070.63660.73820.96970.9957
2013-01-310.63250.73800.96011.0020
2013-01-240.63220.74910.95421.0019
2013-01-170.62400.74810.94960.9869
2013-01-100.62320.76260.94590.9859
2013-01-030.61880.76320.95180.9863
2012-12-270.61800.75380.96350.9917
2012-12-200.61500.75490.95360.9894
2012-12-130.61940.76470.94750.9828
2012-12-060.62070.76500.95290.9915
2012-11-290.62380.76960.95670.9917
2012-11-220.62650.77560.96330.9960
2012-11-150.63140.78390.96821.0020
2012-11-080.62540.78520.96030.9964
2012-11-010.61900.77070.96270.9995
2012-10-250.61950.76960.96280.9916
2012-10-180.61890.76230.96300.9790
2012-10-110.62340.77410.97330.9789
2012-10-040.62080.77210.97850.9870
2012-09-270.61670.77680.95960.9832
2012-09-200.61770.77200.96190.9787
2012-09-130.62080.77460.95720.9759
2012-09-060.62790.79130.97650.9867
2012-08-300.63070.79720.96800.9912
2012-08-230.63030.79670.95450.9909
2012-08-160.63680.81440.95370.9886
2012-08-090.63990.81290.94620.9942
2012-08-020.64020.81000.94911.0022
2012-07-260.63850.81570.96171.0078
2012-07-190.63730.81390.95831.0072
2012-07-120.64760.82120.98781.0232
2012-07-050.64250.80480.97141.0124
2012-06-280.64330.80530.99511.0279
2012-06-210.63690.78930.98221.0187
2012-06-140.64470.79671.00601.0266
2012-06-070.64200.79401.00141.0236
2012-05-310.64490.80631.02681.0289
2012-05-240.63790.79641.02271.0255
2012-05-170.63140.78851.00891.0139
2012-05-100.61860.77150.98770.9988
2012-05-030.61820.76200.97250.9843
2012-04-260.61780.75670.96380.9813
2012-04-190.62440.76420.96680.9912
2012-04-120.62700.76030.96140.9984
2012-04-050.63070.76520.97260.9980
2012-03-290.62970.75350.96670.9999
2012-03-220.63290.75950.96420.9988
2012-03-150.63830.76590.95140.9926
2012-03-080.63330.75520.93950.9952
2012-03-010.62720.75120.92800.9856
2012-02-230.63620.75190.93460.9969
2012-02-160.63820.77030.93731.0034
2012-02-090.62960.75260.92530.9948
2012-02-020.63210.76370.93521.0002
2012-01-260.63750.76070.93771.0016
2012-01-190.64720.77450.95971.0078
2012-01-120.65210.78520.96601.0165
2012-01-050.64430.77930.97341.0161
2011-12-290.64860.77590.99301.0233
2011-12-220.63810.76650.98701.0247
2011-12-150.64470.76811.00651.0354
2011-12-080.63590.74570.97021.0084
2011-12-010.63670.74120.97701.0181
2011-11-240.64350.74781.02421.0442
2011-11-170.63350.74180.99431.0253
        
        
        
using OfficeOpenXml;
using OfficeOpenXml.Style;
using OfficeOpenXml.Table;
using System;
using System.Globalization;
using System.IO;

namespace EPPlus.WebSampleMvc.NetCore.Models.HtmlExport
{
    public class ExportTable3Model
    {
        public string Css { get; set; }

        public string Html { get; set; }

        public void SetupSampleData(TableStyles style = TableStyles.Dark1)
        {
            using (var package = new ExcelPackage())
            {
                var sheet = package.Workbook.Worksheets.Add("Html export sample 3");
                var csvFileInfo = new FileInfo(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"data\\currencies2011weekly.csv"));
                var format = new ExcelTextFormat
                {
                    Delimiter = ';',
                    Culture = CultureInfo.InvariantCulture,
                    DataTypes = new eDataTypes[] { eDataTypes.DateTime, eDataTypes.Number, eDataTypes.Number, eDataTypes.Number }
                };
                var tableRange = sheet.Cells["A1"].LoadFromText(csvFileInfo, format, style, true);

                sheet.Cells["B1:E1"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Right;
                sheet.Cells[tableRange.Start.Row, 1, tableRange.End.Row, 1].Style.Numberformat.Format = "yyyy-MM-dd";
                sheet.Cells[tableRange.Start.Row, 2, tableRange.End.Row, 5].Style.Numberformat.Format = "#,##0.0000";

                var table = sheet.Tables.GetFromRange(tableRange);
                table.ShowFirstColumn = true;

                var exporter = table.CreateHtmlExporter();
                var settings = exporter.Settings;
                settings.Culture = CultureInfo.InvariantCulture;
                settings.TableId = "currency-table";
                settings.AdditionalTableClassNames.Add("table");
                settings.AdditionalTableClassNames.Add("table-sm");
                settings.AdditionalTableClassNames.Add("table-borderless");

                // export css and html
                Css = exporter.GetCssString();
                Html = exporter.GetHtmlString();
            }
        }
    }
}