From 45e45bb722efc964dbd3c0552b7aff21fcc6b487 Mon Sep 17 00:00:00 2001 From: Marco Vettorello Date: Wed, 23 Sep 2020 23:51:31 +0200 Subject: [PATCH 1/3] fix: disable x filling for line and areas This fix removes the needs of filling the missing x values on line and area charts in the following case: non-stacked line or area chart, with continuous scale and no fit function. BREAKING CHANGE: On non-stacked line or area charts, with a continuous x scale and no fit function, the line between consecutive points, independently from the other data series, will be a continuous connecting line. fix #825 --- .playground/browser_data.ts | 1865 +++++++++++++++++ .playground/index.html | 13 +- .playground/overall_data.ts | 431 ++++ .playground/playground.tsx | 74 +- src/chart_types/xy_chart/state/utils/utils.ts | 18 +- src/chart_types/xy_chart/utils/fill_series.ts | 37 +- src/chart_types/xy_chart/utils/series.test.ts | 7 +- src/chart_types/xy_chart/utils/series.ts | 16 +- 8 files changed, 2431 insertions(+), 30 deletions(-) create mode 100644 .playground/browser_data.ts create mode 100644 .playground/overall_data.ts diff --git a/.playground/browser_data.ts b/.playground/browser_data.ts new file mode 100644 index 0000000000..6b895add12 --- /dev/null +++ b/.playground/browser_data.ts @@ -0,0 +1,1865 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +export default [ + { + name: 'Chrome', + data: [ + { + x: 0.76, + y: 0.8102345415778252, + }, + { + x: 1.51, + y: 3.823738450604122, + }, + { + x: 2.27, + y: 8.315565031982942, + }, + { + x: 3.02, + y: 12.821606254442075, + }, + { + x: 3.78, + y: 14.314143567874911, + }, + { + x: 4.53, + y: 12.821606254442074, + }, + { + x: 5.29, + y: 9.452736318407965, + }, + { + x: 6.04, + y: 6.680881307746979, + }, + { + x: 6.8, + y: 5.216773276474768, + }, + { + x: 7.55, + y: 4.1080312722103685, + }, + { + x: 8.31, + y: 2.7860696517413004, + }, + { + x: 9.06, + y: 2.6154939587775345, + }, + { + x: 9.82, + y: 1.7910447761194064, + }, + { + x: 10.57, + y: 1.421464108031273, + }, + { + x: 11.33, + y: 1.1371712864250156, + }, + { + x: 12.08, + y: 1.3361762615493973, + }, + { + x: 12.84, + y: 0.952380952380949, + }, + { + x: 13.59, + y: 0.980810234541579, + }, + { + x: 14.35, + y: 0.7249466950959516, + }, + { + x: 15.1, + y: 0.5828002842928299, + }, + { + x: 15.86, + y: 0.4406538734896941, + }, + { + x: 16.61, + y: 0.4975124378109399, + }, + { + x: 17.37, + y: 0.5543710021321999, + }, + { + x: 18.12, + y: 0.3837953091684341, + }, + { + x: 18.88, + y: 0.29850746268657247, + }, + { + x: 19.63, + y: 0.4122245913290641, + }, + { + x: 20.39, + y: 0.3553660270078183, + }, + { + x: 21.14, + y: 0.3269367448472025, + }, + { + x: 21.9, + y: 0.31272210376687326, + }, + { + x: 22.65, + y: 0.22743425728501165, + }, + { + x: 23.41, + y: 0.15636105188343663, + }, + { + x: 24.16, + y: 0.18479033404406664, + }, + { + x: 24.92, + y: 0.17057569296375164, + }, + { + x: 25.67, + y: 0.18479033404406664, + }, + { + x: 26.43, + y: 0.19900497512436743, + }, + { + x: 27.18, + y: 0.17057569296375164, + }, + { + x: 27.94, + y: 0.05685856432126002, + }, + { + x: 28.69, + y: 0.18479033404406664, + }, + { + x: 29.45, + y: 0.19900497512436743, + }, + { + x: 30.2, + y: 0.18479033404406664, + }, + { + x: 30.96, + y: 0.14214641080313584, + }, + { + x: 31.71, + y: 0.12793176972280662, + }, + { + x: 32.47, + y: 0.05685856432126002, + }, + { + x: 33.22, + y: 0.08528784648187582, + }, + { + x: 33.98, + y: 0.09950248756219082, + }, + { + x: 34.73, + y: 0.0426439232409308, + }, + { + x: 35.49, + y: 0.042643923240945014, + }, + { + x: 36.24, + y: 0.05685856432124581, + }, + { + x: 37, + y: 0.02842928216063001, + }, + { + x: 37.75, + y: 0.05685856432124581, + }, + ], + }, + { + name: 'Firefox', + data: [ + { + x: 0.76, + y: 2.6651216685979144, + }, + { + x: 1.51, + y: 16.68597914252607, + }, + { + x: 2.27, + y: 20.393974507531865, + }, + { + x: 3.02, + y: 19.69872537659328, + }, + { + x: 3.78, + y: 14.484356894553876, + }, + { + x: 4.53, + y: 7.5318655851680205, + }, + { + x: 5.29, + y: 4.519119351100812, + }, + { + x: 6.04, + y: 3.592120509849366, + }, + { + x: 6.8, + y: 1.7381228273464586, + }, + { + x: 7.55, + y: 1.0428736964078809, + }, + { + x: 8.31, + y: 1.9698725376593273, + }, + { + x: 9.06, + y: 1.0428736964078809, + }, + { + x: 9.82, + y: 0.695249130938592, + }, + { + x: 10.57, + y: 0.46349942062572325, + }, + { + x: 11.33, + y: 0.8111239860950121, + }, + { + x: 12.08, + y: 0.23174971031286873, + }, + { + x: 12.84, + y: 0.23174971031285452, + }, + { + x: 13.59, + y: 0.11587485515643436, + }, + { + x: 14.35, + y: 0, + }, + { + x: 15.1, + y: 0, + }, + { + x: 15.86, + y: 0.23174971031286873, + }, + { + x: 16.61, + y: 0.23174971031285452, + }, + { + x: 17.37, + y: 0.23174971031286873, + }, + { + x: 18.12, + y: 0.11587485515643436, + }, + { + x: 18.88, + y: 0.3476245654692889, + }, + { + x: 19.63, + y: 0.11587485515643436, + }, + { + x: 20.39, + y: 0, + }, + { + x: 21.14, + y: 0, + }, + { + x: 21.9, + y: 0, + }, + { + x: 22.65, + y: 0, + }, + { + x: 23.41, + y: 0, + }, + { + x: 24.16, + y: 0, + }, + { + x: 24.92, + y: 0, + }, + { + x: 25.67, + y: 0, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 0, + }, + { + x: 27.94, + y: 0, + }, + { + x: 28.69, + y: 0, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0, + }, + { + x: 31.71, + y: 0, + }, + { + x: 32.47, + y: 0.11587485515642015, + }, + { + x: 33.22, + y: 0, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0.11587485515643436, + }, + { + x: 35.49, + y: 0.11587485515643436, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, + { + name: 'Chrome Mobile', + data: [ + { + x: 0.76, + y: 0.1564945226917058, + }, + { + x: 1.51, + y: 0.1564945226917058, + }, + { + x: 2.27, + y: 1.408450704225352, + }, + { + x: 3.02, + y: 2.9733959311424103, + }, + { + x: 3.78, + y: 5.633802816901408, + }, + { + x: 4.53, + y: 5.790297339593115, + }, + { + x: 5.29, + y: 6.729264475743349, + }, + { + x: 6.04, + y: 10.954616588419402, + }, + { + x: 6.8, + y: 9.233176838810643, + }, + { + x: 7.55, + y: 5.790297339593117, + }, + { + x: 8.31, + y: 5.477308294209699, + }, + { + x: 9.06, + y: 4.694835680751176, + }, + { + x: 9.82, + y: 5.0078247261345865, + }, + { + x: 10.57, + y: 4.381846635367765, + }, + { + x: 11.33, + y: 3.1298904538341077, + }, + { + x: 12.08, + y: 2.816901408450704, + }, + { + x: 12.84, + y: 2.3474178403755843, + }, + { + x: 13.59, + y: 2.1909233176838825, + }, + { + x: 14.35, + y: 1.7214397496087628, + }, + { + x: 15.1, + y: 1.4084507042253591, + }, + { + x: 15.86, + y: 1.0954616588419412, + }, + { + x: 16.61, + y: 1.251956181533643, + }, + { + x: 17.37, + y: 1.4084507042253591, + }, + { + x: 18.12, + y: 0.7824726134585234, + }, + { + x: 18.88, + y: 1.4084507042253591, + }, + { + x: 19.63, + y: 1.251956181533643, + }, + { + x: 20.39, + y: 1.251956181533643, + }, + { + x: 21.14, + y: 0.9389671361502394, + }, + { + x: 21.9, + y: 0.4694835680751197, + }, + { + x: 22.65, + y: 1.251956181533643, + }, + { + x: 23.41, + y: 0.7824726134585234, + }, + { + x: 24.16, + y: 0.15649452269170183, + }, + { + x: 24.92, + y: 1.0954616588419412, + }, + { + x: 25.67, + y: 0.3129890453834179, + }, + { + x: 26.43, + y: 0.6259780907668215, + }, + { + x: 27.18, + y: 0, + }, + { + x: 27.94, + y: 0.15649452269170183, + }, + { + x: 28.69, + y: 0.4694835680751197, + }, + { + x: 29.45, + y: 0.3129890453834179, + }, + { + x: 30.2, + y: 0.31298904538340366, + }, + { + x: 30.96, + y: 0.15649452269171604, + }, + { + x: 31.71, + y: 0.15649452269170183, + }, + { + x: 32.47, + y: 0.15649452269170183, + }, + { + x: 33.22, + y: 0.15649452269170183, + }, + { + x: 33.98, + y: 0.15649452269171604, + }, + { + x: 34.73, + y: 0.15649452269170183, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0.31298904538340366, + }, + { + x: 37.75, + y: 0.15649452269171604, + }, + ], + }, + { + name: 'Edge', + data: [ + { + x: 0.76, + y: 1.0080645161290323, + }, + { + x: 1.51, + y: 4.032258064516129, + }, + { + x: 2.27, + y: 10.685483870967744, + }, + { + x: 3.02, + y: 16.129032258064516, + }, + { + x: 3.78, + y: 15.120967741935484, + }, + { + x: 4.53, + y: 11.29032258064516, + }, + { + x: 5.29, + y: 9.475806451612897, + }, + { + x: 6.04, + y: 7.056451612903231, + }, + { + x: 6.8, + y: 4.435483870967744, + }, + { + x: 7.55, + y: 3.225806451612897, + }, + { + x: 8.31, + y: 2.4193548387096797, + }, + { + x: 9.06, + y: 2.016129032258064, + }, + { + x: 9.82, + y: 2.016129032258064, + }, + { + x: 10.57, + y: 0.8064516129032313, + }, + { + x: 11.33, + y: 1.008064516129025, + }, + { + x: 12.08, + y: 0.8064516129032313, + }, + { + x: 12.84, + y: 0.6048387096774235, + }, + { + x: 13.59, + y: 1.008064516129025, + }, + { + x: 14.35, + y: 0.6048387096774235, + }, + { + x: 15.1, + y: 0.6048387096774235, + }, + { + x: 15.86, + y: 0.6048387096774093, + }, + { + x: 16.61, + y: 0, + }, + { + x: 17.37, + y: 0, + }, + { + x: 18.12, + y: 0, + }, + { + x: 18.88, + y: 0.6048387096774235, + }, + { + x: 19.63, + y: 0.40322580645161565, + }, + { + x: 20.39, + y: 0.40322580645161565, + }, + { + x: 21.14, + y: 0, + }, + { + x: 21.9, + y: 0.6048387096774093, + }, + { + x: 22.65, + y: 0.6048387096774235, + }, + { + x: 23.41, + y: 0, + }, + { + x: 24.16, + y: 0.40322580645161565, + }, + { + x: 24.92, + y: 0.40322580645161565, + }, + { + x: 25.67, + y: 0.20161290322580783, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 0, + }, + { + x: 27.94, + y: 0, + }, + { + x: 28.69, + y: 0.40322580645160144, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0, + }, + { + x: 31.71, + y: 0, + }, + { + x: 32.47, + y: 0.20161290322580783, + }, + { + x: 33.22, + y: 0.40322580645161565, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, + { + name: 'Safari', + data: [ + { + x: 0.76, + y: 2, + }, + { + x: 1.51, + y: 5.2, + }, + { + x: 2.27, + y: 10.8, + }, + { + x: 3.02, + y: 16.4, + }, + { + x: 3.78, + y: 22, + }, + { + x: 4.53, + y: 11.199999999999996, + }, + { + x: 5.29, + y: 6, + }, + { + x: 6.04, + y: 5.200000000000003, + }, + { + x: 6.8, + y: 2.799999999999997, + }, + { + x: 7.55, + y: 3.6000000000000085, + }, + { + x: 8.31, + y: 2.3999999999999915, + }, + { + x: 9.06, + y: 0.8000000000000114, + }, + { + x: 9.82, + y: 1.1999999999999886, + }, + { + x: 10.57, + y: 1.6000000000000085, + }, + { + x: 11.33, + y: 1.5999999999999943, + }, + { + x: 12.08, + y: 0.4000000000000057, + }, + { + x: 12.84, + y: 0.7999999999999972, + }, + { + x: 13.59, + y: 0, + }, + { + x: 14.35, + y: 1.2000000000000028, + }, + { + x: 15.1, + y: 0.3999999999999915, + }, + { + x: 15.86, + y: 0, + }, + { + x: 16.61, + y: 0, + }, + { + x: 17.37, + y: 0, + }, + { + x: 18.12, + y: 0.4000000000000057, + }, + { + x: 18.88, + y: 0.7999999999999972, + }, + { + x: 19.63, + y: 0, + }, + { + x: 20.39, + y: 0, + }, + { + x: 21.14, + y: 0.4000000000000057, + }, + { + x: 21.9, + y: 0, + }, + { + x: 22.65, + y: 0, + }, + { + x: 23.41, + y: 0, + }, + { + x: 24.16, + y: 0, + }, + { + x: 24.92, + y: 0, + }, + { + x: 25.67, + y: 0, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 0.3999999999999915, + }, + { + x: 27.94, + y: 0, + }, + { + x: 28.69, + y: 0, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0.4000000000000057, + }, + { + x: 31.71, + y: 0, + }, + { + x: 32.47, + y: 0, + }, + { + x: 33.22, + y: 0, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, + { + name: 'iSec_Bot', + data: [ + { + x: 0.76, + y: 0, + }, + { + x: 1.51, + y: 0.847457627118644, + }, + { + x: 2.27, + y: 5.932203389830509, + }, + { + x: 3.02, + y: 26.27118644067797, + }, + { + x: 3.78, + y: 22.03389830508474, + }, + { + x: 4.53, + y: 11.864406779661024, + }, + { + x: 5.29, + y: 10.169491525423723, + }, + { + x: 6.04, + y: 10.169491525423723, + }, + { + x: 6.8, + y: 3.3898305084745886, + }, + { + x: 7.55, + y: 0, + }, + { + x: 8.31, + y: 3.3898305084745743, + }, + { + x: 9.06, + y: 0.8474576271186436, + }, + { + x: 9.82, + y: 0.8474576271186436, + }, + { + x: 10.57, + y: 0.8474576271186436, + }, + { + x: 11.33, + y: 0.8474576271186436, + }, + { + x: 12.08, + y: 0.8474576271186436, + }, + { + x: 12.84, + y: 1.6949152542372872, + }, + { + x: 13.59, + y: 0, + }, + { + x: 14.35, + y: 0, + }, + { + x: 15.1, + y: 0, + }, + { + x: 15.86, + y: 0, + }, + { + x: 16.61, + y: 0, + }, + { + x: 17.37, + y: 0, + }, + { + x: 18.12, + y: 0, + }, + { + x: 18.88, + y: 0, + }, + { + x: 19.63, + y: 0, + }, + { + x: 20.39, + y: 0, + }, + { + x: 21.14, + y: 0, + }, + { + x: 21.9, + y: 0, + }, + { + x: 22.65, + y: 0, + }, + { + x: 23.41, + y: 0, + }, + { + x: 24.16, + y: 0, + }, + { + x: 24.92, + y: 0, + }, + { + x: 25.67, + y: 0, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 0, + }, + { + x: 27.94, + y: 0, + }, + { + x: 28.69, + y: 0, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0, + }, + { + x: 31.71, + y: 0, + }, + { + x: 32.47, + y: 0, + }, + { + x: 33.22, + y: 0, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, + { + name: 'Mobile Safari', + data: [ + { + x: 0.76, + y: 5.2631578947368425, + }, + { + x: 1.51, + y: 3.5087719298245617, + }, + { + x: 2.27, + y: 6.140350877192981, + }, + { + x: 3.02, + y: 18.421052631578952, + }, + { + x: 3.78, + y: 13.157894736842103, + }, + { + x: 4.53, + y: 13.157894736842103, + }, + { + x: 5.29, + y: 2.631578947368425, + }, + { + x: 6.04, + y: 4.385964912280706, + }, + { + x: 6.8, + y: 3.5087719298245617, + }, + { + x: 7.55, + y: 4.3859649122806985, + }, + { + x: 8.31, + y: 4.3859649122806985, + }, + { + x: 9.06, + y: 0, + }, + { + x: 9.82, + y: 1.754385964912288, + }, + { + x: 10.57, + y: 0, + }, + { + x: 11.33, + y: 2.6315789473684106, + }, + { + x: 12.08, + y: 2.631578947368425, + }, + { + x: 12.84, + y: 0, + }, + { + x: 13.59, + y: 1.754385964912288, + }, + { + x: 14.35, + y: 0.8771929824561369, + }, + { + x: 15.1, + y: 1.7543859649122737, + }, + { + x: 15.86, + y: 1.754385964912288, + }, + { + x: 16.61, + y: 0.8771929824561369, + }, + { + x: 17.37, + y: 0, + }, + { + x: 18.12, + y: 1.754385964912288, + }, + { + x: 18.88, + y: 0, + }, + { + x: 19.63, + y: 2.6315789473684106, + }, + { + x: 20.39, + y: 0, + }, + { + x: 21.14, + y: 0, + }, + { + x: 21.9, + y: 0.8771929824561511, + }, + { + x: 22.65, + y: 0, + }, + { + x: 23.41, + y: 0, + }, + { + x: 24.16, + y: 0, + }, + { + x: 24.92, + y: 0, + }, + { + x: 25.67, + y: 0.8771929824561369, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 0, + }, + { + x: 27.94, + y: 0.8771929824561369, + }, + { + x: 28.69, + y: 0, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0, + }, + { + x: 31.71, + y: 0, + }, + { + x: 32.47, + y: 0, + }, + { + x: 33.22, + y: 0, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, + { + name: 'Opera', + data: [ + { + x: 0.76, + y: 0, + }, + { + x: 1.51, + y: 0, + }, + { + x: 2.27, + y: 5.063291139240507, + }, + { + x: 3.02, + y: 13.924050632911394, + }, + { + x: 3.78, + y: 11.392405063291136, + }, + { + x: 4.53, + y: 12.65822784810127, + }, + { + x: 5.29, + y: 8.860759493670884, + }, + { + x: 6.04, + y: 6.329113924050631, + }, + { + x: 6.8, + y: 6.329113924050631, + }, + { + x: 7.55, + y: 2.5316455696202524, + }, + { + x: 8.31, + y: 8.860759493670898, + }, + { + x: 9.06, + y: 5.063291139240505, + }, + { + x: 9.82, + y: 1.2658227848101262, + }, + { + x: 10.57, + y: 2.5316455696202524, + }, + { + x: 11.33, + y: 2.5316455696202524, + }, + { + x: 12.08, + y: 0, + }, + { + x: 12.84, + y: 2.5316455696202524, + }, + { + x: 13.59, + y: 0, + }, + { + x: 14.35, + y: 0, + }, + { + x: 15.1, + y: 0, + }, + { + x: 15.86, + y: 0, + }, + { + x: 16.61, + y: 0, + }, + { + x: 17.37, + y: 1.2658227848101262, + }, + { + x: 18.12, + y: 0, + }, + { + x: 18.88, + y: 1.2658227848101262, + }, + { + x: 19.63, + y: 0, + }, + { + x: 20.39, + y: 0, + }, + { + x: 21.14, + y: 0, + }, + { + x: 21.9, + y: 0, + }, + { + x: 22.65, + y: 0, + }, + { + x: 23.41, + y: 1.2658227848101262, + }, + { + x: 24.16, + y: 0, + }, + { + x: 24.92, + y: 0, + }, + { + x: 25.67, + y: 0, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 1.2658227848101262, + }, + { + x: 27.94, + y: 0, + }, + { + x: 28.69, + y: 0, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0, + }, + { + x: 31.71, + y: 0, + }, + { + x: 32.47, + y: 0, + }, + { + x: 33.22, + y: 0, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, + { + name: 'Chrome Mobile WebView', + data: [ + { + x: 0.76, + y: 0, + }, + { + x: 1.51, + y: 0, + }, + { + x: 2.27, + y: 0, + }, + { + x: 3.02, + y: 1.8867924528301887, + }, + { + x: 3.78, + y: 7.547169811320755, + }, + { + x: 4.53, + y: 1.8867924528301874, + }, + { + x: 5.29, + y: 3.7735849056603783, + }, + { + x: 6.04, + y: 7.547169811320753, + }, + { + x: 6.8, + y: 16.9811320754717, + }, + { + x: 7.55, + y: 7.547169811320757, + }, + { + x: 8.31, + y: 7.547169811320757, + }, + { + x: 9.06, + y: 0, + }, + { + x: 9.82, + y: 7.5471698113207495, + }, + { + x: 10.57, + y: 3.7735849056603783, + }, + { + x: 11.33, + y: 1.8867924528301927, + }, + { + x: 12.08, + y: 1.8867924528301927, + }, + { + x: 12.84, + y: 1.8867924528301785, + }, + { + x: 13.59, + y: 1.8867924528301927, + }, + { + x: 14.35, + y: 3.773584905660371, + }, + { + x: 15.1, + y: 1.8867924528301927, + }, + { + x: 15.86, + y: 0, + }, + { + x: 16.61, + y: 0, + }, + { + x: 17.37, + y: 0, + }, + { + x: 18.12, + y: 1.8867924528301927, + }, + { + x: 18.88, + y: 0, + }, + { + x: 19.63, + y: 0, + }, + { + x: 20.39, + y: 1.8867924528301927, + }, + { + x: 21.14, + y: 0, + }, + { + x: 21.9, + y: 3.773584905660371, + }, + { + x: 22.65, + y: 0, + }, + { + x: 23.41, + y: 0, + }, + { + x: 24.16, + y: 1.8867924528301927, + }, + { + x: 24.92, + y: 7.547169811320757, + }, + { + x: 25.67, + y: 0, + }, + { + x: 26.43, + y: 0, + }, + { + x: 27.18, + y: 0, + }, + { + x: 27.94, + y: 0, + }, + { + x: 28.69, + y: 0, + }, + { + x: 29.45, + y: 0, + }, + { + x: 30.2, + y: 0, + }, + { + x: 30.96, + y: 0, + }, + { + x: 31.71, + y: 1.8867924528301785, + }, + { + x: 32.47, + y: 1.8867924528301927, + }, + { + x: 33.22, + y: 0, + }, + { + x: 33.98, + y: 0, + }, + { + x: 34.73, + y: 0, + }, + { + x: 35.49, + y: 0, + }, + { + x: 36.24, + y: 0, + }, + { + x: 37, + y: 0, + }, + { + x: 37.75, + y: 0, + }, + ], + }, +]; diff --git a/.playground/index.html b/.playground/index.html index 2403a54bfc..008c605fc2 100644 --- a/.playground/index.html +++ b/.playground/index.html @@ -7,24 +7,29 @@