kdp9390
Posts: 62
Joined: Tue Apr 26, 2022 3:20 am

'spline' chart data values ​​and questions

In the 'spline' chart, I want to create a chart with consecutive years like the corresponding url. I failed to make the chart. I want to draw the corresponding chart with the 'data' written below. Can you make a chart like you posted in the url? I tried for over a week and I failed. Thank you for your help.

https://www.blackrock.com/corporate/ins ... tor#regime

"data": {
"level": 0,
"direction": -1,
"trend": {
"asset_correlation": {
"2005-08-31T00:00:00": -2.064093027612451,
"2005-09-30T00:00:00": -1.72579787833936,
"2005-10-31T00:00:00": -1.5614623941550176,
"2005-11-30T00:00:00": -1.9545945637347966,
"2005-12-31T00:00:00": -1.0957365748021723,
"2006-01-31T00:00:00": -0.26034767032761563,
"2006-02-28T00:00:00": -0.44934652630404565,
"2006-03-31T00:00:00": -1.2763169898663642,
"2006-04-30T00:00:00": -2.2418464496220656,
"2006-05-31T00:00:00": -1.9454093853967633,
"2006-06-30T00:00:00": -1.1009172622455723,
"2006-07-31T00:00:00": -0.9828187030766966,
"2006-08-31T00:00:00": -2.1699933636366007,
"2006-09-30T00:00:00": -1.9321201270178263,
"2006-10-31T00:00:00": -1.6354207830180818,
"2006-11-30T00:00:00": -1.0786302303664408,
"2006-12-31T00:00:00": -1.108947321407911,
"2007-01-31T00:00:00": -1.11275121506388,
"2007-02-28T00:00:00": -0.8983567919514325,
"2007-03-31T00:00:00": -0.824355470611142,
"2007-04-30T00:00:00": -0.4592730923855974,
"2007-05-31T00:00:00": -1.1086148864500804,
"2007-06-30T00:00:00": -1.5790602910854332,
"2007-07-31T00:00:00": -1.547654096816875,
"2007-08-31T00:00:00": -1.4564896876027065,
"2007-09-30T00:00:00": 0.46916184528488813,
"2007-10-31T00:00:00": 1.1628407993575367,
"2007-11-30T00:00:00": 0.4821923091662694,
"2007-12-31T00:00:00": 0.2818205826628366,
"2008-01-31T00:00:00": -1.3849403298168304,
"2008-02-29T00:00:00": -1.7286324756320632,
"2008-03-31T00:00:00": -1.9843946979762086,
"2008-04-30T00:00:00": -0.9656858278561525,
"2008-05-31T00:00:00": -0.5564689907463836,
"2008-06-30T00:00:00": -0.8826712598783609,
"2008-07-31T00:00:00": -1.0693377589065864,
"2008-08-31T00:00:00": -1.2121685643225604,
"2008-09-30T00:00:00": -0.3538260057032927,
"2008-10-31T00:00:00": 0.7551485372392066,
"2008-11-30T00:00:00": 0.6357845816159343,
"2008-12-31T00:00:00": 0.33966693187655095,
"2009-01-31T00:00:00": -0.0072939384988903126,
"2009-02-28T00:00:00": 0.02229420465917442,
"2009-03-31T00:00:00": 0.16690138511799715,
"2009-04-30T00:00:00": -0.08438072897880283,
"2009-05-31T00:00:00": -0.19005538969625613,
"2009-06-30T00:00:00": 0.045536421455784924,
"2009-07-31T00:00:00": 0.10538123531854808,
"2009-08-31T00:00:00": 1.0018349914155287,
"2009-09-30T00:00:00": 1.574886145750028,
"2009-10-31T00:00:00": 1.7680731628580382,
"2009-11-30T00:00:00": 1.5810669689985164,
"2009-12-31T00:00:00": 0.7897005460632883,
"2010-01-31T00:00:00": 0.3030538414005312,
"2010-02-28T00:00:00": 0.12491832138592186,
"2010-03-31T00:00:00": -0.03276115431260128,
"2010-04-30T00:00:00": 0.40237809636076827,
"2010-05-31T00:00:00": -1.255911879456503,
"2010-06-30T00:00:00": -1.160201769734155,
"2010-07-31T00:00:00": -0.5028202404568816,
"2010-08-31T00:00:00": 0.19349148045471526,
"2010-09-30T00:00:00": 1.2345456828776293,
"2010-10-31T00:00:00": 1.7951783160113715,
"2010-11-30T00:00:00": 1.241715476393872,
"2010-12-31T00:00:00": -0.20912650759574816,
"2011-01-31T00:00:00": -0.6701595233068705,
"2011-02-28T00:00:00": -1.1969809133017713,
"2011-03-31T00:00:00": -0.7338626315349296,
"2011-04-30T00:00:00": 1.0809112657401583,
"2011-05-31T00:00:00": 0.58431515601197,
"2011-06-30T00:00:00": -0.6220449462385381,
"2011-07-31T00:00:00": -0.43438723601200424,
"2011-08-31T00:00:00": -2.4015637343241623,
"2011-09-30T00:00:00": -2.3471203435803303,
"2011-10-31T00:00:00": -1.6576735928477908,
"2011-11-30T00:00:00": -1.1458651170754632,
"2011-12-31T00:00:00": -1.214544775883265,
"2012-01-31T00:00:00": 0.048447699465814884,
"2012-02-29T00:00:00": 1.174891008396954,
"2012-03-31T00:00:00": 0.7759062274920788,
"2012-04-30T00:00:00": 0.40907955166149423,
"2012-05-31T00:00:00": -1.2490583076270878,
"2012-06-30T00:00:00": -1.594592774898121,
"2012-07-31T00:00:00": -0.5755182863098242,
"2012-08-31T00:00:00": 0.04451370127602418,
"2012-09-30T00:00:00": 0.38894779775779814,
"2012-10-31T00:00:00": 0.3080063900265679,
"2012-11-30T00:00:00": 0.14286238861398737,
"2012-12-31T00:00:00": -0.22253273949508418,
"2013-01-31T00:00:00": -0.9422196732093718,
"2013-02-28T00:00:00": -1.2041426694101525,
"2013-03-31T00:00:00": -1.3531606974295662,
"2013-04-30T00:00:00": -0.8214179788895716,
"2013-05-31T00:00:00": -0.5078079315500136,
"2013-06-30T00:00:00": 2.2085239284938925,
"2013-07-31T00:00:00": 1.1485609926569695,
"2013-08-31T00:00:00": 0.3620823776868,
"2013-09-30T00:00:00": 0.09538970325928646,
"2013-10-31T00:00:00": 0.5625160459837296,
"2013-11-30T00:00:00": 0.39249155411027536,
"2013-12-31T00:00:00": -0.21005557779256268,
"2014-01-31T00:00:00": -0.9144643961541689,
"2014-02-28T00:00:00": 0.24495800301892,
"2014-03-31T00:00:00": 0.8668183062613197,
"2014-04-30T00:00:00": 2.387756312445474,
"2014-05-31T00:00:00": 2.9598449187115476,
"2014-06-30T00:00:00": 2.739379050550959,
"2014-07-31T00:00:00": 1.4999272951908293,
"2014-08-31T00:00:00": 0.5108060947780363,
"2014-09-30T00:00:00": 0.6599779326364081,
"2014-10-31T00:00:00": -0.7194889619357653,
"2014-11-30T00:00:00": -0.7446025232850839,
"2014-12-31T00:00:00": -0.983206829167743,
"2015-01-31T00:00:00": -0.8032854645151142,
"2015-02-28T00:00:00": -0.6389775089743498,
"2015-03-31T00:00:00": -0.5215339731279942,
"2015-04-30T00:00:00": 0.3097161582367404,
"2015-05-31T00:00:00": -0.590726600037261,
"2015-06-30T00:00:00": 0.07890612635917185,
"2015-07-31T00:00:00": 0.3823960443064367,
"2015-08-31T00:00:00": 0.4809170850839649,
"2015-09-30T00:00:00": 0.34919849723871144,
"2015-10-31T00:00:00": 0.05173969291894268,
"2015-11-30T00:00:00": -0.006062629805443645,
"2015-12-31T00:00:00": 0.5276575953031026,
"2016-01-31T00:00:00": 0.1372654102617089,
"2016-02-29T00:00:00": -0.4200594174627698,
"2016-03-31T00:00:00": 0.6600967771357734,
"2016-04-30T00:00:00": 1.3592459174967049,
"2016-05-31T00:00:00": 1.298989997044022,
"2016-06-30T00:00:00": 1.2931859500389764,
"2016-07-31T00:00:00": 0.9266119913119497,
"2016-08-31T00:00:00": 1.0907455069515852,
"2016-09-30T00:00:00": 0.9010799610499373,
"2016-10-31T00:00:00": 0.47471782935748463,
"2016-11-30T00:00:00": 1.120644651333684,
"2016-12-31T00:00:00": -0.3973408030050875,
"2017-01-31T00:00:00": -0.3442818952621386,
"2017-02-28T00:00:00": -0.13687925973854775,
"2017-03-31T00:00:00": -0.6838895210598954,
"2017-04-30T00:00:00": -0.13525636091984122,
"2017-05-31T00:00:00": 0.0042137756371295266,
"2017-06-30T00:00:00": -0.05433251810862814,
"2017-07-31T00:00:00": -0.03198886532753036,
"2017-08-31T00:00:00": 0.9033065436278804,
"2017-09-30T00:00:00": 1.9813137856225371,
"2017-10-31T00:00:00": 1.254821242142893,
"2017-11-30T00:00:00": 1.2473763553797477,
"2017-12-31T00:00:00": 1.4254142829390037,
"2018-01-31T00:00:00": -0.06345166790360117,
"2018-02-28T00:00:00": 0.048071758924279416,
"2018-03-31T00:00:00": -0.42956710235504686,
"2018-04-30T00:00:00": -1.2090325892767213,
"2018-05-31T00:00:00": -2.4173939762222774,
"2018-06-30T00:00:00": -3.3456636007792215,
"2018-07-31T00:00:00": -2.8325510857293636,
"2018-08-31T00:00:00": -2.500625083807936,
"2018-09-30T00:00:00": -2.327742564021573,
"2018-10-31T00:00:00": -0.15917454915037194,
"2018-11-30T00:00:00": 0.9424875717199234,
"2018-12-31T00:00:00": -0.7811294789174854,
"2019-01-31T00:00:00": -0.2223699055412701,
"2019-02-28T00:00:00": 0.7058799305266373,
"2019-03-31T00:00:00": 1.3940924333539775,
"2019-04-30T00:00:00": 1.9353256575020186,
"2019-05-31T00:00:00": 0.5128566009597846,
"2019-06-30T00:00:00": 0.3031108859294373,
"2019-07-31T00:00:00": 0.6978879133293326,
"2019-08-31T00:00:00": -1.2486325701675571,
"2019-09-30T00:00:00": -0.7751817597081779,
"2019-10-31T00:00:00": -0.5747665834039241,
"2019-11-30T00:00:00": -0.16827132892553634,
"2019-12-31T00:00:00": 0.6944528561635885,
"2020-01-31T00:00:00": 0.4312333506217849,
"2020-02-29T00:00:00": -0.6607235464356963,
"2020-03-31T00:00:00": 0.29773490370221656,
"2020-04-30T00:00:00": -0.4330845693478029,
"2020-05-31T00:00:00": -0.48211859597015666,
"2020-06-30T00:00:00": -0.1487697445597261,
"2020-07-31T00:00:00": 0.8695530014263563,
"2020-08-31T00:00:00": 1.0737651472503715,
"2020-09-30T00:00:00": 0.9555919311073479,
"2020-10-31T00:00:00": 0.6356522121882988,
"2020-11-30T00:00:00": 0.5273333690702086,
"2020-12-31T00:00:00": 0.7110017535826656,
"2021-01-31T00:00:00": 0.20149916528890502,
"2021-02-28T00:00:00": -0.4858392526091697,
"2021-03-31T00:00:00": -0.8460199949005841,
"2021-04-30T00:00:00": -0.7858691254445791,
"2021-05-31T00:00:00": -0.60923303225184,
"2021-06-30T00:00:00": 0.7761288347635303,
"2021-07-31T00:00:00": 0.5233954478156072,
"2021-08-31T00:00:00": 0.2201600353114292,
"2021-09-30T00:00:00": 0.09943549064810844,
"2021-10-31T00:00:00": -0.9650195887910613,
"2021-11-30T00:00:00": -1.11964520693976,
"2021-12-31T00:00:00": -1.5859978136326067,
"2022-01-31T00:00:00": -1.0566933731675923,
"2022-02-28T00:00:00": -0.8228008531976425,
"2022-03-31T00:00:00": -0.9862742199697214,
"2022-04-30T00:00:00": 0.09252358066574087,
"2022-05-31T00:00:00": 0.7036909856765118,
"2022-06-30T00:00:00": 0.7279188511273739
},
"risk_sentiment": {
"2005-08-31T00:00:00": 1.7005773306753331,
"2005-09-30T00:00:00": 1.72698315352019,
"2005-10-31T00:00:00": 1.4471993440181334,
"2005-11-30T00:00:00": 1.549815400334236,
"2005-12-31T00:00:00": 1.5057221124526887,
"2006-01-31T00:00:00": 1.7640067920747236,
"2006-02-28T00:00:00": 1.7832640857464417,
"2006-03-31T00:00:00": 1.903970590386167,
"2006-04-30T00:00:00": 1.8521486237484182,
"2006-05-31T00:00:00": 1.4143374999816234,
"2006-06-30T00:00:00": 1.5830087166064963,
"2006-07-31T00:00:00": 1.6761978721123234,
"2006-08-31T00:00:00": 1.838857392578474,
"2006-09-30T00:00:00": 1.8805292094786763,
"2006-10-31T00:00:00": 2.031651411749777,
"2006-11-30T00:00:00": 2.103762762847698,
"2006-12-31T00:00:00": 2.102392579347194,
"2007-01-31T00:00:00": 2.1306864961266614,
"2007-02-28T00:00:00": 1.914609109357455,
"2007-03-31T00:00:00": 1.9429790464825658,
"2007-04-30T00:00:00": 1.887236067302537,
"2007-05-31T00:00:00": 2.079780416344995,
"2007-06-30T00:00:00": 1.8990939065020975,
"2007-07-31T00:00:00": 1.522779095517182,
"2007-08-31T00:00:00": 1.980513369719203,
"2007-09-30T00:00:00": 2.045365123951773,
"2007-10-31T00:00:00": 2.2536727442242377,
"2007-11-30T00:00:00": 1.9086283304713958,
"2007-12-31T00:00:00": 1.9323786099928837,
"2008-01-31T00:00:00": 1.1926569310127826,
"2008-02-29T00:00:00": 1.2578944884000125,
"2008-03-31T00:00:00": 1.5021293493750683,
"2008-04-30T00:00:00": 1.5842004302002457,
"2008-05-31T00:00:00": 1.8766078664171408,
"2008-06-30T00:00:00": 1.607841072174169,
"2008-07-31T00:00:00": 1.8821538236311772,
"2008-08-31T00:00:00": 1.8583695921747598,
"2008-09-30T00:00:00": 1.5496477945166487,
"2008-10-31T00:00:00": -0.5808738454476651,
"2008-11-30T00:00:00": -1.9545628154750787,
"2008-12-31T00:00:00": -1.6496795020471617,
"2009-01-31T00:00:00": -1.7341677793897254,
"2009-02-28T00:00:00": -2.10187775556741,
"2009-03-31T00:00:00": -1.4178138775588125,
"2009-04-30T00:00:00": -1.0288183560142168,
"2009-05-31T00:00:00": -0.6207927481967255,
"2009-06-30T00:00:00": -0.46892994420336553,
"2009-07-31T00:00:00": -0.082103071402504,
"2009-08-31T00:00:00": -0.08841493456343572,
"2009-09-30T00:00:00": 0.13818196444934205,
"2009-10-31T00:00:00": -0.09279968885379515,
"2009-11-30T00:00:00": 0.2540775421634306,
"2009-12-31T00:00:00": 0.6160846565091376,
"2010-01-31T00:00:00": 0.4108226546372901,
"2010-02-28T00:00:00": 0.8620556644990833,
"2010-03-31T00:00:00": 1.0318924670561254,
"2010-04-30T00:00:00": 1.1199078554012214,
"2010-05-31T00:00:00": 0.34605407889123796,
"2010-06-30T00:00:00": -0.008883313904176168,
"2010-07-31T00:00:00": 0.5392047386826397,
"2010-08-31T00:00:00": 0.5502719531147927,
"2010-09-30T00:00:00": 0.9290656677913558,
"2010-10-31T00:00:00": 1.0351108597476868,
"2010-11-30T00:00:00": 1.272232812666097,
"2010-12-31T00:00:00": 1.462394878782504,
"2011-01-31T00:00:00": 1.5785943117230112,
"2011-02-28T00:00:00": 1.599720946867198,
"2011-03-31T00:00:00": 1.5156564509371984,
"2011-04-30T00:00:00": 1.5998864172960507,
"2011-05-31T00:00:00": 1.6771616645799585,
"2011-06-30T00:00:00": 1.5238948601842406,
"2011-07-31T00:00:00": 1.3370279253167032,
"2011-08-31T00:00:00": 0.2328967257237366,
"2011-09-30T00:00:00": -0.09782561872242805,
"2011-10-31T00:00:00": 0.7968711745518517,
"2011-11-30T00:00:00": 1.0930672310197431,
"2011-12-31T00:00:00": 1.4059928586591914,
"2012-01-31T00:00:00": 1.6143105799580506,
"2012-02-29T00:00:00": 1.6359375771444207,
"2012-03-31T00:00:00": 1.9595702174446747,
"2012-04-30T00:00:00": 1.9723363397253242,
"2012-05-31T00:00:00": 1.5298543701938023,
"2012-06-30T00:00:00": 1.9397718084616022,
"2012-07-31T00:00:00": 1.874073452100516,
"2012-08-31T00:00:00": 2.0099518175667055,
"2012-09-30T00:00:00": 1.926050668632805,
"2012-10-31T00:00:00": 1.7926091028670885,
"2012-11-30T00:00:00": 1.354597520538423,
"2012-12-31T00:00:00": 1.3866618104837936,
"2013-01-31T00:00:00": 1.5308875058247522,
"2013-02-28T00:00:00": 1.4446932716564467,
"2013-03-31T00:00:00": 1.6029333291030947,
"2013-04-30T00:00:00": 1.245611601671425,
"2013-05-31T00:00:00": 1.1925464203338891,
"2013-06-30T00:00:00": 1.2511014265966445,
"2013-07-31T00:00:00": 1.326166170646753,
"2013-08-31T00:00:00": 1.0769263913701328,
"2013-09-30T00:00:00": 1.3825464509542726,
"2013-10-31T00:00:00": 1.5019503408366115,
"2013-11-30T00:00:00": 1.7434205991569645,
"2013-12-31T00:00:00": 1.7934354059563622,
"2014-01-31T00:00:00": 1.4528614126772887,
"2014-02-28T00:00:00": 1.889087062708543,
"2014-03-31T00:00:00": 1.7323363264761638,
"2014-04-30T00:00:00": 1.312944144562727,
"2014-05-31T00:00:00": 1.2524810892015834,
"2014-06-30T00:00:00": 1.3014848983889757,
"2014-07-31T00:00:00": 0.7408567047844615,
"2014-08-31T00:00:00": 1.241367196745809,
"2014-09-30T00:00:00": 0.9253945914684051,
"2014-10-31T00:00:00": 1.3605511744134673,
"2014-11-30T00:00:00": 1.3781769526116363,
"2014-12-31T00:00:00": 1.7710698859114316,
"2015-01-31T00:00:00": 1.5183885876768712,
"2015-02-28T00:00:00": 1.9079923839370958,
"2015-03-31T00:00:00": 1.9124701898423988,
"2015-04-30T00:00:00": 1.8411697333043764,
"2015-05-31T00:00:00": 2.2338999335905028,
"2015-06-30T00:00:00": 2.0190834417785317,
"2015-07-31T00:00:00": 2.107309320316692,
"2015-08-31T00:00:00": 0.8697990301135688,
"2015-09-30T00:00:00": 0.489553920764897,
"2015-10-31T00:00:00": 1.446398848039159,
"2015-11-30T00:00:00": 1.803004580654064,
"2015-12-31T00:00:00": 1.3709910802772332,
"2016-01-31T00:00:00": -0.03107837431181112,
"2016-02-29T00:00:00": 0.3605602929987632,
"2016-03-31T00:00:00": 0.6857055949561393,
"2016-04-30T00:00:00": 0.8313634103108349,
"2016-05-31T00:00:00": 0.9475651996239517,
"2016-06-30T00:00:00": 1.2217709269289636,
"2016-07-31T00:00:00": 1.642223761361363,
"2016-08-31T00:00:00": 1.8220101959394488,
"2016-09-30T00:00:00": 2.1246066955087892,
"2016-10-31T00:00:00": 1.694644124491578,
"2016-11-30T00:00:00": 2.3850410554685983,
"2016-12-31T00:00:00": 2.369680268646193,
"2017-01-31T00:00:00": 2.276576455317789,
"2017-02-28T00:00:00": 2.286409250647322,
"2017-03-31T00:00:00": 2.3607620891296452,
"2017-04-30T00:00:00": 2.529786709879187,
"2017-05-31T00:00:00": 2.382203326482554,
"2017-06-30T00:00:00": 2.4677538195874913,
"2017-07-31T00:00:00": 2.2886122240971107,
"2017-08-31T00:00:00": 1.6253651731844463,
"2017-09-30T00:00:00": 1.7153169463319025,
"2017-10-31T00:00:00": 1.684237902316907,
"2017-11-30T00:00:00": 1.523762873568948,
"2017-12-31T00:00:00": 1.5732119543830754,
"2018-01-31T00:00:00": 1.5487182530622612,
"2018-02-28T00:00:00": 1.088812638617027,
"2018-03-31T00:00:00": 1.0462813661415458,
"2018-04-30T00:00:00": 1.325058106158529,
"2018-05-31T00:00:00": 1.580847873825397,
"2018-06-30T00:00:00": 1.4593753409712122,
"2018-07-31T00:00:00": 1.5876580140654473,
"2018-08-31T00:00:00": 1.7751393282419075,
"2018-09-30T00:00:00": 1.682918218442825,
"2018-10-31T00:00:00": 0.4218828389021427,
"2018-11-30T00:00:00": 0.6686188410197859,
"2018-12-31T00:00:00": -0.6244692590064234,
"2019-01-31T00:00:00": -0.30999742035538363,
"2019-02-28T00:00:00": -0.17620817065351496,
"2019-03-31T00:00:00": -0.2228911586201036,
"2019-04-30T00:00:00": 0.16367865578951946,
"2019-05-31T00:00:00": -0.48562556322330913,
"2019-06-30T00:00:00": 0.5645018588896563,
"2019-07-31T00:00:00": 0.9263116299988732,
"2019-08-31T00:00:00": 0.06477713047955716,
"2019-09-30T00:00:00": 0.07436490357373322,
"2019-10-31T00:00:00": 0.5933633765677153,
"2019-11-30T00:00:00": 0.9725212092391423,
"2019-12-31T00:00:00": 1.1131099286324313,
"2020-01-31T00:00:00": 0.3574127223435821,
"2020-02-29T00:00:00": -1.3957756630268379,
"2020-03-31T00:00:00": -4.934369609236459,
"2020-04-30T00:00:00": -3.024619652335645,
"2020-05-31T00:00:00": -2.0525358110658454,
"2020-06-30T00:00:00": -1.609343048763124,
"2020-07-31T00:00:00": -1.0694878085220694,
"2020-08-31T00:00:00": -0.6753599767265105,
"2020-09-30T00:00:00": -0.4777022372393677,
"2020-10-31T00:00:00": -0.5230481148988501,
"2020-11-30T00:00:00": 0.5039903725787527,
"2020-12-31T00:00:00": 0.7398278396336136,
"2021-01-31T00:00:00": 0.8683282731535753,
"2021-02-28T00:00:00": 1.1779301394971613,
"2021-03-31T00:00:00": 1.5827584038454816,
"2021-04-30T00:00:00": 1.988983484899921,
"2021-05-31T00:00:00": 2.210997318053072,
"2021-06-30T00:00:00": 2.3547150868925066,
"2021-07-31T00:00:00": 2.163583141689414,
"2021-08-31T00:00:00": 2.0525143060754987,
"2021-09-30T00:00:00": 1.9349056985318358,
"2021-10-31T00:00:00": 2.0916148671606303,
"2021-11-30T00:00:00": 1.620635772742984,
"2021-12-31T00:00:00": 1.5566306378182844,
"2022-01-31T00:00:00": 0.9353496612031297,
"2022-02-28T00:00:00": 1.1706482573011925,
"2022-03-31T00:00:00": 1.387262287147065,
"2022-04-30T00:00:00": 0.9000475199980347,
"2022-05-31T00:00:00": 0.8484908546474126,
"2022-06-30T00:00:00": 0.4767434495409927
}
}
}

Code: Select all

            const splineSize = document.getElementsByName('spline') as any;
            var splineWidth = splineSize[0].clientWidth,
                splineHeight = 900;

            Highcharts.chart('spline', {
                chart: {
                    type: 'spline',
                    height: splineHeight,
                    events: {
                        load: function () {
                            const chart = this,
                                offset = 75,
                                topMargin = 50;
                            chart.renderer
                                .text('More +', chart.chartWidth - offset, chart.chartHeight + topMargin - offset + 25)
                                .css({
                                    color: 'orange',
                                    fontWeight: 'bold',
                                })
                                .add();
                            chart.renderer
                                .text('- Less', offset - 65, chart.chartHeight + topMargin - offset)
                                .attr({
                                    rotation: -90,
                                })
                                .css({
                                    color: 'orange',
                                    fontWeight: 'bold',
                                })
                                .add();
                            chart.renderer
                                .text('- Less', offset - 65, chart.chartHeight + topMargin - offset + 25)
                                .css({
                                    color: 'green',
                                    fontWeight: 'bold',
                                })
                                .add();
                            chart.renderer
                                .text('More +', offset - 65, offset + topMargin)
                                .attr({
                                    rotation: -90,
                                })
                                .css({
                                    color: 'green',
                                    fontWeight: 'bold',
                                })
                                .add();

                            const startX = 0,
                                startY = 75,
                                endX = chart.chartWidth,
                                endY = startY,
                                yAxisZero = chart.yAxis[0].translate(0);

                            if (!chart.customLine) {
                                chart.customLine = chart.renderer
                                    .path(['M', startX, startY-30, 'L', endX, endY-30])
                                    .attr({
                                        'stroke-width': 1,
                                        stroke: 'black',
                                    })
                                    .add();
                            } else {
                                chart.customLine.attr({
                                    d: ['M', startX, startY, 'L', endX, endY],
                                });
                            }

                        },
                    },
                },
                credits: {
                    enabled: false,
                }, // 하단 highchart.com 글씨 삭제
                exporting: {
                    // 상단 context menu 제거
                    enabled: false,
                },
                title: {
                    text: '',
                },
                legend: {
                    enabled: true,
                    symbolPadding: 0,
                    symbolWidth: 0,
                    symbolHeight: 0,
                    squareSymbol: false,
                    align: 'right',
                    verticalAlign: 'top',
                },
                plotOptions: {
                    spline: {
                        marker: {
                            enabled: false,
                        },
                        events: {
                            legendItemClick: function () {
                                const chart = this.chart;
                                chart.series.find((series) => series.name === 'Clear all').setVisible(true);
                                if (this.name === 'Clear all') {
                                    chart.series.forEach((series) => series.setVisible(false));
                                }
                            },
                        },
                    },
                    scatter: {
                        dataLabels: {
                            enabled: true,
                            y: -5,
                            formatter: function () {
                                return this.key;
                            },
                        },
                    },
                },
                xAxis: {
                    type: 'datetime',
                    gridLineWidth: 0,
                    /* min: -10,
                    max: 10, */
                    lineWidth: 1,
                    lineColor: '#b3b3b3',
                    offset: -1 * (0.4 * splineHeight),
                    labels: {
                        enabled: false,
                    },
                    title: {
                        text: 'Asset correlation',
                        y: 0.4 * splineHeight,
                        x: 15,
                        style: {
                            fontSize: '13px',
                            fontWeight: 'bold',
                        },
                    },
                },
                yAxis: {
                    gridLineWidth: 0,
                    min: -10,
                    max: 10,
                    lineWidth: 1,
                    lineColor: '#b3b3b3',
                    offset: -1 * (splineWidth / 2),
                    labels: {
                        enabled: false,
                    },
                    title: {
                        text: 'Risk sentiment',
                        x: -1 * (splineWidth / 2),
                        y: 45,
                        style: {
                            fontSize: '13px',
                            fontWeight: 'bold',
                        },
                    },
                },
                series: this.data.spline.date,
            });
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: 'spline' chart data values ​​and questions

Hello,
Can you make a chart like you posted in the url?
First of all, it is not a chart created by us, and even less so, it is not created in the Higcharts library.

If you have any problem using our library, we can help you with the problem as part of the support, but we will not do the whole graph with this functionality for you because this is beyond the scope of support on our forum. If you need help with your implementation, you can contact the Black Label company that specializes in Highcharts custom projects. See official Black Label site: https://blacklabel.pl

Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”