goat1000/SVGGraph

Weird Issue with Graph Guidelines

Buddierdl opened this issue · 5 comments

Hi, I think I've come across an odd bug in the graphs.

I have a line graph of stock prices that uses vertical guidelines to mark certain dates. Normally it works fine, but I came across a table where one guideline is mysteriously missing. Doing some testing, I found that it is only missing if the date is set to Oct 23-25. With other dates, it shows up fine. What could be going on?

Here is an example of the graph with on guideline missing (it's actually just way off the canvas):

    <defs>
        <clipPath id="e2">
            <rect x="33" y="85" width="645" height="170" />
        </clipPath>
    </defs>
    <rect width="100%" height="100%" fill="rgba(51,121,183,.1)" stroke-width="0px" />
    <g class="grid">
        <path d="M33 255h645M33 230.71h645M33 206.43h645M33 182.14h645M33 157.86h645M33 133.57h645M33 109.29h645M33 85h645M33 85v170M81.95 85v170M131.44 85v170M181.47 85v170M231.5 85v170M280.45 85v170M329.94 85v170M379.97 85v170M430.01 85v170M479.5 85v170M528.99 85v170M579.02 85v170M629.05 85v170M678 85v170" stroke="rgb(220,220,220)" />
    </g>
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M511.04 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M517.02 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M551.83 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M-162446 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M605.12 85v170" />
    <g font-family="Arial" font-size="10px" font-weight="normal" fill="rgb(0,0,0)"><text x="511.04" y="57.8" text-anchor="middle" font-family="Arial">
            <tspan x="511.04" dy="0">Strong Buy</tspan>
            <tspan x="511.04" dy="10">45.00</tspan>
            <tspan x="511.04" dy="10">May 29</tspan>
        </text><text x="517.02" y="22.8" text-anchor="middle" font-family="Arial">
            <tspan x="517.02" dy="0">Underperform</tspan>
            <tspan x="517.02" dy="10">39.00</tspan>
            <tspan x="517.02" dy="10">Jun 9</tspan>
        </text><text x="551.83" y="57.8" text-anchor="middle" font-family="Arial">
            <tspan x="551.83" dy="0">Hold</tspan>
            <tspan x="551.83" dy="10">N/A</tspan>
            <tspan x="551.83" dy="10">Aug 12</tspan>
        </text><text x="-162446" y="22.8" text-anchor="middle" font-family="Arial">
            <tspan x="-162446" dy="0">Outperform</tspan>
            <tspan x="-162446" dy="10">38.00</tspan>
            <tspan x="-162446" dy="10">Oct 23</tspan>
        </text><text x="605.12" y="57.8" text-anchor="middle" font-family="Arial">
            <tspan x="605.12" dy="0">Hold</tspan>
            <tspan x="605.12" dy="10">N/A</tspan>
            <tspan x="605.12" dy="10">Nov 18</tspan>
        </text></g>
    <g clip-path="url(#e2)">
        <path fill="none" stroke="rgb(0,0,0)" stroke-width="1px" d="M36.81 153.47L37.35 154.3 37.89 154.36 38.44 152.16 38.98 152.59 41.16 152.05 41.7 152 42.25 151.78 42.79 152.07 44.42 151.85 44.96 152.42 45.51 150.99 46.05 151.97 46.6 151.18 48.23 151.83 48.77 154.51 49.32 155.83 49.86 156.28 50.4 158.73 52.03 161.76 52.58 160.5 53.12 159.53 53.67 163.34 54.21 161.05 55.84 158.56 56.39 157.29 56.93 154.7 57.47 151.44 58.02 147.93 60.19 150.02 60.74 151.18 61.28 151.55 61.82 150.51 63.46 149.34 64 149.91 64.54 152.91 65.09 149 65.63 149.92 67.26 149.53 67.81 149.9 68.35 148.22 68.89 150.77 69.44 150.14 71.07 148.73 71.61 149.38 72.16 151.79 72.7 152.68 73.24 151.68 74.88 153.8 75.42 155.33 75.96 152.99 76.51 159.72 77.05 160.98 78.68 158.35 79.23 159.08 79.77 160.36 80.31 157.39 82.49 160.12 83.03 158.22 83.58 158.77 84.12 156.45 84.67 160.48 86.3 159.9 86.84 156.58 87.38 158.55 87.93 156.1 88.47 156.39 90.1 155.35 90.65 154.07 91.19 153.2 91.74 152.28 92.28 152.93 93.91 154.43 94.45 155.16 95 153.91 95.54 149.09 96.09 153.59 97.72 154.91 98.26 155.51 98.81 155.61 99.35 154.24 99.89 152.69 101.52 150.87 102.07 150.56 102.61 151.36 103.16 150.17 103.7 150.38 105.33 150.45 105.88 149.52 106.42 148.39 106.96 146.39 107.51 145.54 109.14 147.53 109.68 147.1 110.23 147.99 110.77 147.38 111.31 148.67 113.49 148.97 114.03 146.9 114.58 147.91 115.12 147.13 116.75 146.38 117.3 145.87 117.84 144.49 118.38 145.37 118.93 145.58 120.56 145.66 121.1 146.21 121.65 146.53 122.19 145.02 122.73 147.42 124.37 146.85 124.91 149.75 125.45 148.3 126 149.75 126.54 148.14 128.17 151.99 128.72 151.48 129.26 153.4 129.8 154.52 130.35 154.81 131.98 154.72 132.52 155.45 133.61 154.34 134.16 153.92 135.79 151.94 136.33 150.67 136.87 152.43 137.42 152.52 137.96 152 139.59 152.1 140.14 151.16 140.68 149.11 141.23 150.78 141.77 150.8 143.4 150.17 143.94 148.9 144.49 149.78 145.03 149.58 145.58 151.17 147.21 151.03 147.75 151.76 148.3 151.98 148.84 152.14 149.38 152.52 151.01 151.82 151.56 151.18 152.1 151.48 152.65 152.08 153.19 153.66 154.82 154.5 155.37 154.63 155.91 156.65 156.45 154.39 157 153.02 158.63 152.22 159.17 150.54 159.72 152.02 160.26 154.87 160.8 153.82 162.44 152.82 162.98 152.77 163.52 152.5 164.07 154.05 164.61 153.82 166.79 154.77 167.33 153.66 167.87 153.4 168.42 156.84 170.05 157.19 170.59 156.7 171.14 155.65 171.68 156.26 172.22 156.61 173.86 156.92 174.4 155.73 174.94 154 175.49 153.95 176.03 155.66 177.66 156.51 178.21 155.29 178.75 157.32 179.29 157.01 179.84 156.81 181.47 155.97 182.01 156.77 182.56 156.26 183.1 156.97 183.65 158.62 185.28 157.16 185.82 157.89 186.36 160.51 186.91 161.23 187.45 160.85 189.08 161.36 189.63 160.22 190.17 159.24 190.72 161.26 191.26 161.67 192.89 161.16 193.43 162.42 193.98 166.94 194.52 165.22 195.07 167.23 196.7 168.16 197.24 166.43 197.78 164.15 198.33 161.77 198.87 160.44 200.5 160.62 201.05 160.19 201.59 159.63 202.14 160.85 202.68 161.68 204.31 162.03 204.85 161.52 205.4 161.85 205.94 160.71 206.49 160.48 208.12 161.9 208.66 163.6 209.21 162.5 210.29 162.93 211.92 162.93 212.47 165.55 213.01 162.41 213.56 162.55 214.1 161.81 215.73 161.46 216.28 164.46 217.36 164.62 217.91 167.07 219.54 167.73 220.08 168.2 220.63 167.82 221.17 168.3 221.71 169.25 223.35 170.15 223.89 169.37 224.43 171.48 224.98 172.33 225.52 173.03 227.15 174.53 228.24 171.67 228.78 171.85 229.33 172.55 230.96 172.56 232.05 172.19 232.59 174.26 233.13 170.92 234.77 171.13 235.31 167.96 235.85 167.57 236.4 166.79 236.94 166.47 238.57 167.18 239.12 168.21 239.66 166.82 240.2 165.5 240.75 164.16 242.92 165.5 243.47 166.33 244.01 166.43 244.56 164.28 246.19 164 246.73 162.57 247.27 161.02 247.82 160.15 248.36 159.43 249.99 158.65 250.54 158.59 251.08 158.81 251.63 160.01 252.17 159.94 253.8 159.79 254.34 157.63 254.89 157.49 255.43 158.02 255.98 157.41 258.15 157.16 258.7 154.79 259.24 151.22 259.78 151.65 261.41 149.98 261.96 150.62 262.5 150.47 263.05 151.61 263.59 151.6 265.22 151.2 265.77 151.3 266.31 152.89 266.85 153.63 267.4 155.09 269.03 153.22 269.57 152.68 270.12 152.38 270.66 153.41 271.2 153.01 272.84 151.87 273.38 151.34 273.92 151.62 274.47 149.73 275.01 153.49 276.64 152.37 277.19 151.96 277.73 151.35 278.27 150.92 278.82 149.79 280.45 147.67 280.99 147.76 281.54 146.5 282.08 145.2 282.62 145.14 284.26 146.03 284.8 148.67 285.34 148.51 285.89 149.19 286.43 148.58 288.06 148.6 288.61 148.12 289.15 148.78 289.69 150.09 291.87 151.28 292.41 150.86 292.96 151.47 293.5 148.53 294.05 148.04 295.68 148.11 296.22 147.81 296.76 150.08 297.31 150.05 297.85 147.6 299.48 148.16 300.03 151.2 300.57 150.19 301.12 149.78 301.66 148.57 303.29 153.57 303.83 151.28 304.38 150.86 304.92 150.63 305.47 152.75 307.1 153.2 307.64 150.89 308.19 153.59 308.73 155.47 309.27 155.33 311.45 156.49 311.99 155.5 312.54 155.35 313.08 157.32 314.71 155.18 315.26 153.6 315.8 153.66 316.34 153.26 316.89 153.4 318.52 153.1 319.06 150.48 319.61 150.52 320.15 149.96 320.69 150.67 322.33 152.4 322.87 150.3 323.41 149.45 323.96 148.83 324.5 149.09 326.13 149.67 326.68 149.77 327.22 147.02 327.76 145.94 328.31 144.01 329.94 142.95 330.48 144.07 331.03 144.28 332.11 144.81 333.75 146.61 334.29 146.73 334.83 147.69 335.38 148.48 335.92 147.27 337.55 146.65 338.1 145.59 338.64 147.18 339.18 146.65 339.73 145.56 341.36 145.53 341.9 145.33 342.45 145.79 342.99 136.42 343.54 134.18 345.17 136.16 345.71 136.84 346.25 137.76 346.8 139.01 347.34 140.15 348.97 141.64 349.52 139.95 350.06 140.13 350.61 137.46 351.15 139.55 352.78 140.63 353.32 138.57 353.87 142.12 354.41 141.97 354.96 139.87 356.59 138.3 357.13 139.16 357.68 139.21 358.22 139.67 358.76 142.25 360.39 142 360.94 143.5 361.48 142.41 362.03 139.87 362.57 140.29 364.75 141.02 365.29 138.06 365.83 136.82 366.38 136.93 368.01 136.57 368.55 133.44 369.1 133.08 369.64 132.61 370.18 133.01 371.82 134 372.36 133.09 372.9 133.31 373.45 132.86 373.99 136.47 375.62 135.52 376.17 138.97 376.71 136.79 377.25 138.45 377.8 138.33 379.43 137.42 379.97 138.03 380.52 140.44 381.06 139.3 381.6 137.61 383.24 138.53 383.78 139.17 384.32 139.34 384.87 137.01 385.41 135.09 387.04 137.16 387.59 136.06 388.13 137.82 388.67 137.08 389.22 137.79 390.85 138.19 391.39 137.44 391.94 137.93 392.48 121.87 393.03 118.09 394.66 115.65 395.2 113.75 395.74 115.73 396.29 118.1 396.83 116.18 398.46 115.08 399.01 115.11 399.55 116.73 400.1 116.45 400.64 116.57 402.27 117.53 402.81 118.48 403.36 119.55 403.9 121.12 404.45 120.84 406.08 116.97 406.62 117.7 407.17 116.05 407.71 117.16 408.25 117.03 409.88 116.47 410.43 113.74 410.97 113.97 412.06 115.14 413.69 114.51 414.24 115.08 414.78 116.16 415.32 114.35 415.87 112.48 417.5 112.11 418.04 112.35 418.59 112.19 419.13 111.71 419.67 113.04 421.31 114.09 421.85 111.47 422.39 111.75 422.94 112.56 423.48 111.17 425.11 111.76 425.66 111.98 426.74 111.76 427.29 112.41 428.92 112.64 429.46 113.03 430.55 113.63 431.09 114.16 432.73 114.5 433.27 114.11 433.81 114.25 434.36 113.11 434.9 115.09 436.53 112.13 437.08 111.28 437.62 111.16 438.16 111.75 438.71 110.97 440.88 116.36 441.43 115.82 441.97 115.05 442.52 116.61 444.15 118.7 444.69 117.81 445.23 118.95 445.78 115.53 446.32 118.91 447.95 117.32 448.5 116.65 449.04 113.95 449.59 114.42 450.13 117.42 451.76 116.88 452.3 115.33 452.85 116.34 453.39 117.04 453.94 117.43 456.11 117.46 456.66 116.07 457.2 125.31 457.74 123.47 459.37 126.08 459.92 127.61 460.46 126.24 461.01 131.13 461.55 133.74 463.18 129.61 463.73 130.08 464.27 126.13 464.81 130.2 465.36 133.25 466.99 143.27 467.53 137.65 468.08 141.81 468.62 152.32 469.16 147.7 470.8 158.86 471.34 155.42 471.88 164.34 472.43 161.54 472.97 166.21 474.6 169.78 475.15 156.19 475.69 155.52 476.23 145.74 476.78 155.46 478.41 149.19 478.95 150.48 479.5 155.8 480.04 155.33 480.58 159.83 482.22 154.38 482.76 153.36 483.3 150.34 483.85 147.8 486.02 150.95 486.57 149.13 487.11 156.05 487.65 156.32 488.2 149.91 489.83 153.52 490.37 155.37 490.92 154.97 491.46 152.49 492.01 151.04 493.64 147.34 494.18 148.25 494.72 141.71 495.27 148.11 495.81 150.29 497.44 150.72 497.99 151.09 498.53 151.64 499.08 148.98 499.62 144.18 501.25 146.02 501.79 151.2 502.34 155.94 502.88 152.94 503.43 150.53 505.06 143.47 505.6 145.91 506.15 146.06 506.69 146.08 507.23 145.86 509.41 142.67 509.95 137.17 510.5 137.7 511.04 138.52 512.67 137.36 513.22 136.67 513.76 134.73 514.3 133.59 514.85 132.61 516.48 132.36 517.02 133.63 517.57 132.61 518.11 144.89 518.65 143.14 520.28 142.35 520.83 138.46 521.37 139.74 521.92 140.34 522.46 140.02 524.09 139.42 524.64 140.46 525.18 145.65 525.72 143.45 526.27 146.43 527.9 143.45 528.44 141 528.99 143.36 529.53 141.7 531.71 140.73 532.25 142.29 532.79 144.4 533.34 147.07 533.88 143.97 535.51 145.43 536.06 142.25 536.6 140.8 537.14 141.45 537.69 141.94 539.32 142.26 539.86 140.47 540.41 139.12 540.95 133.93 541.49 131.97 543.13 130.76 543.67 134.61 544.21 132.8 544.76 135.44 545.3 137 546.93 133.6 547.48 132.43 548.02 131.56 548.56 132.15 549.11 129.94 550.74 126.94 551.28 126.48 551.83 125.98 552.37 127.37 552.92 126.58 554.55 126.19 555.09 126.76 555.63 128.57 556.18 127.82 556.72 130 558.35 127.22 558.9 128.35 559.44 127.86 559.99 127.52 560.53 126.64 562.16 128.33 562.7 125.74 563.25 123.05 563.79 125.79 564.34 124.61 566.51 129.54 567.06 127.21 567.6 129.19 568.14 128.17 569.77 126.88 570.32 126.52 570.86 126.47 571.41 125.18 571.95 126.24 573.58 132.7 574.13 133.26 574.67 133.31 575.21 131.92 575.76 131.05 577.39 129.05 577.93 131.64 578.48 131.75 579.02 128.47 579.56 126.99 581.2 124.15 581.74 126.32 582.28 122.78 582.83 119.72 583.37 120.02 585 119.02 585.55 119.54 586.09 119.31 586.63 118.25 587.18 118.22 588.81 119.23 589.35 119.43 589.9 119.72 590.44 121.24 590.98 120.63 592.62 124.67 593.16 123.47 593.7 126.55 594.25 123.69 594.79 123.35 596.42 121.02 596.97 120.21 597.51 124.23 598.05 119.57 598.6 119.35 600.23 113.42 600.77 111.27 601.32 113.41 601.86 116.03 602.41 112.23 604.04 109.06 604.58 108.22 605.12 111.67 605.67 111.91 606.21 111.47 607.84 109.5 608.39 106.07 608.93 107.56 610.02 107.79 611.65 111.96 612.19 108.99 612.74 110.39 613.28 109.93 613.83 107.43 615.46 108.75 616 108.05 616.55 109.19 617.09 106.5 617.63 107.73 619.26 109.81 619.81 106.98 620.35 109.13 620.9 109.58 621.44 112.03 623.07 110.9 623.62 112.31 624.16 111.13 624.7 111.57 626.88 111.22 627.42 111.51 627.97 110.31 628.51 109.59 630.69 109.64 631.23 105.47 631.77 95.88 632.32 94.18 632.86 95.47" />
    </g>
    <path d="M33 258v-3M81.95 258v-3M131.44 258v-3M181.47 258v-3M231.5 258v-3M280.45 258v-3M329.94 258v-3M379.97 258v-3M430.01 258v-3M479.5 258v-3M528.99 258v-3M579.02 258v-3M629.05 258v-3M678 258v-3" stroke="rgb(0,0,0)" fill="none" />
    <path stroke="rgb(0,0,0)" d="M28 255h655" stroke-width="2px" />
    <g font-family="inherit" font-size="10px" fill="rgb(0,0,0)"><text x="33" y="268.5" text-anchor="middle">
            <tspan x="33" dy="0">Jan</tspan>
            <tspan x="33" dy="10">2018</tspan>
        </text><text x="81.95" y="268.5" text-anchor="middle">
            <tspan x="81.95" dy="0">Apr</tspan>
            <tspan x="81.95" dy="10">2018</tspan>
        </text><text x="131.44" y="268.5" text-anchor="middle">
            <tspan x="131.44" dy="0">Jul</tspan>
            <tspan x="131.44" dy="10">2018</tspan>
        </text><text x="181.47" y="268.5" text-anchor="middle">
            <tspan x="181.47" dy="0">Oct</tspan>
            <tspan x="181.47" dy="10">2018</tspan>
        </text><text x="231.5" y="268.5" text-anchor="middle">
            <tspan x="231.5" dy="0">Jan</tspan>
            <tspan x="231.5" dy="10">2019</tspan>
        </text><text x="280.45" y="268.5" text-anchor="middle">
            <tspan x="280.45" dy="0">Apr</tspan>
            <tspan x="280.45" dy="10">2019</tspan>
        </text><text x="329.94" y="268.5" text-anchor="middle">
            <tspan x="329.94" dy="0">Jul</tspan>
            <tspan x="329.94" dy="10">2019</tspan>
        </text><text x="379.97" y="268.5" text-anchor="middle">
            <tspan x="379.97" dy="0">Oct</tspan>
            <tspan x="379.97" dy="10">2019</tspan>
        </text><text x="430.01" y="268.5" text-anchor="middle">
            <tspan x="430.01" dy="0">Jan</tspan>
            <tspan x="430.01" dy="10">2020</tspan>
        </text><text x="479.5" y="268.5" text-anchor="middle">
            <tspan x="479.5" dy="0">Apr</tspan>
            <tspan x="479.5" dy="10">2020</tspan>
        </text><text x="528.99" y="268.5" text-anchor="middle">
            <tspan x="528.99" dy="0">Jul</tspan>
            <tspan x="528.99" dy="10">2020</tspan>
        </text><text x="579.02" y="268.5" text-anchor="middle">
            <tspan x="579.02" dy="0">Oct</tspan>
            <tspan x="579.02" dy="10">2020</tspan>
        </text><text x="629.05" y="268.5" text-anchor="middle">
            <tspan x="629.05" dy="0">Jan</tspan>
            <tspan x="629.05" dy="10">2021</tspan>
        </text><text x="678" y="268.5" text-anchor="middle">
            <tspan x="678" dy="0">Apr</tspan>
            <tspan x="678" dy="10">2021</tspan>
        </text></g>
    <path d="M30 255h3M30 230.71h3M30 206.43h3M30 182.14h3M30 157.86h3M30 133.57h3M30 109.29h3M30 85h3" stroke="rgb(0,0,0)" fill="none" />
    <path stroke="rgb(0,0,0)" d="M33 80v180" stroke-width="2px" />
    <g font-family="inherit" font-size="10px" fill="rgb(0,0,0)"><text x="28" y="258.5" text-anchor="end">0</text><text x="28" y="234.21" text-anchor="end">20</text><text x="28" y="209.93" text-anchor="end">40</text><text x="28" y="185.64" text-anchor="end">60</text><text x="28" y="161.36" text-anchor="end">80</text><text x="28" y="137.07" text-anchor="end">100</text><text x="28" y="112.79" text-anchor="end">120</text><text x="28" y="88.5" text-anchor="end">140</text></g>
</svg>

And here is a good SVG with the date just move slightly:

    <defs>
        <clipPath id="e2">
            <rect x="33" y="85" width="645" height="170" />
        </clipPath>
    </defs>
    <rect width="100%" height="100%" fill="rgba(51,121,183,.1)" stroke-width="0px" />
    <g class="grid">
        <path d="M33 255h645M33 230.71h645M33 206.43h645M33 182.14h645M33 157.86h645M33 133.57h645M33 109.29h645M33 85h645M33 85v170M81.95 85v170M131.44 85v170M181.47 85v170M231.5 85v170M280.45 85v170M329.94 85v170M379.97 85v170M430.01 85v170M479.5 85v170M528.99 85v170M579.02 85v170M629.05 85v170M678 85v170" stroke="rgb(220,220,220)" />
    </g>
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M511.04 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M517.02 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M551.83 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M590.44 85v170" />
    <path stroke="rgb(0,0,0)" stroke-width="2px" stroke-dasharray="3" fill="none" d="M605.12 85v170" />
    <g font-family="Arial" font-size="10px" font-weight="normal" fill="rgb(0,0,0)"><text x="511.04" y="57.8" text-anchor="middle" font-family="Arial">
            <tspan x="511.04" dy="0">Strong Buy</tspan>
            <tspan x="511.04" dy="10">45.00</tspan>
            <tspan x="511.04" dy="10">May 29</tspan>
        </text><text x="517.02" y="22.8" text-anchor="middle" font-family="Arial">
            <tspan x="517.02" dy="0">Underperform</tspan>
            <tspan x="517.02" dy="10">39.00</tspan>
            <tspan x="517.02" dy="10">Jun 9</tspan>
        </text><text x="551.83" y="57.8" text-anchor="middle" font-family="Arial">
            <tspan x="551.83" dy="0">Hold</tspan>
            <tspan x="551.83" dy="10">N/A</tspan>
            <tspan x="551.83" dy="10">Aug 12</tspan>
        </text><text x="590.44" y="22.8" text-anchor="middle" font-family="Arial">
            <tspan x="590.44" dy="0">Outperform</tspan>
            <tspan x="590.44" dy="10">38.00</tspan>
            <tspan x="590.44" dy="10">Oct 22</tspan>
        </text><text x="605.12" y="57.8" text-anchor="middle" font-family="Arial">
            <tspan x="605.12" dy="0">Hold</tspan>
            <tspan x="605.12" dy="10">N/A</tspan>
            <tspan x="605.12" dy="10">Nov 18</tspan>
        </text></g>
    <g clip-path="url(#e2)">
        <path fill="none" stroke="rgb(0,0,0)" stroke-width="1px" d="M36.81 153.47L37.35 154.3 37.89 154.36 38.44 152.16 38.98 152.59 41.16 152.05 41.7 152 42.25 151.78 42.79 152.07 44.42 151.85 44.96 152.42 45.51 150.99 46.05 151.97 46.6 151.18 48.23 151.83 48.77 154.51 49.32 155.83 49.86 156.28 50.4 158.73 52.03 161.76 52.58 160.5 53.12 159.53 53.67 163.34 54.21 161.05 55.84 158.56 56.39 157.29 56.93 154.7 57.47 151.44 58.02 147.93 60.19 150.02 60.74 151.18 61.28 151.55 61.82 150.51 63.46 149.34 64 149.91 64.54 152.91 65.09 149 65.63 149.92 67.26 149.53 67.81 149.9 68.35 148.22 68.89 150.77 69.44 150.14 71.07 148.73 71.61 149.38 72.16 151.79 72.7 152.68 73.24 151.68 74.88 153.8 75.42 155.33 75.96 152.99 76.51 159.72 77.05 160.98 78.68 158.35 79.23 159.08 79.77 160.36 80.31 157.39 82.49 160.12 83.03 158.22 83.58 158.77 84.12 156.45 84.67 160.48 86.3 159.9 86.84 156.58 87.38 158.55 87.93 156.1 88.47 156.39 90.1 155.35 90.65 154.07 91.19 153.2 91.74 152.28 92.28 152.93 93.91 154.43 94.45 155.16 95 153.91 95.54 149.09 96.09 153.59 97.72 154.91 98.26 155.51 98.81 155.61 99.35 154.24 99.89 152.69 101.52 150.87 102.07 150.56 102.61 151.36 103.16 150.17 103.7 150.38 105.33 150.45 105.88 149.52 106.42 148.39 106.96 146.39 107.51 145.54 109.14 147.53 109.68 147.1 110.23 147.99 110.77 147.38 111.31 148.67 113.49 148.97 114.03 146.9 114.58 147.91 115.12 147.13 116.75 146.38 117.3 145.87 117.84 144.49 118.38 145.37 118.93 145.58 120.56 145.66 121.1 146.21 121.65 146.53 122.19 145.02 122.73 147.42 124.37 146.85 124.91 149.75 125.45 148.3 126 149.75 126.54 148.14 128.17 151.99 128.72 151.48 129.26 153.4 129.8 154.52 130.35 154.81 131.98 154.72 132.52 155.45 133.61 154.34 134.16 153.92 135.79 151.94 136.33 150.67 136.87 152.43 137.42 152.52 137.96 152 139.59 152.1 140.14 151.16 140.68 149.11 141.23 150.78 141.77 150.8 143.4 150.17 143.94 148.9 144.49 149.78 145.03 149.58 145.58 151.17 147.21 151.03 147.75 151.76 148.3 151.98 148.84 152.14 149.38 152.52 151.01 151.82 151.56 151.18 152.1 151.48 152.65 152.08 153.19 153.66 154.82 154.5 155.37 154.63 155.91 156.65 156.45 154.39 157 153.02 158.63 152.22 159.17 150.54 159.72 152.02 160.26 154.87 160.8 153.82 162.44 152.82 162.98 152.77 163.52 152.5 164.07 154.05 164.61 153.82 166.79 154.77 167.33 153.66 167.87 153.4 168.42 156.84 170.05 157.19 170.59 156.7 171.14 155.65 171.68 156.26 172.22 156.61 173.86 156.92 174.4 155.73 174.94 154 175.49 153.95 176.03 155.66 177.66 156.51 178.21 155.29 178.75 157.32 179.29 157.01 179.84 156.81 181.47 155.97 182.01 156.77 182.56 156.26 183.1 156.97 183.65 158.62 185.28 157.16 185.82 157.89 186.36 160.51 186.91 161.23 187.45 160.85 189.08 161.36 189.63 160.22 190.17 159.24 190.72 161.26 191.26 161.67 192.89 161.16 193.43 162.42 193.98 166.94 194.52 165.22 195.07 167.23 196.7 168.16 197.24 166.43 197.78 164.15 198.33 161.77 198.87 160.44 200.5 160.62 201.05 160.19 201.59 159.63 202.14 160.85 202.68 161.68 204.31 162.03 204.85 161.52 205.4 161.85 205.94 160.71 206.49 160.48 208.12 161.9 208.66 163.6 209.21 162.5 210.29 162.93 211.92 162.93 212.47 165.55 213.01 162.41 213.56 162.55 214.1 161.81 215.73 161.46 216.28 164.46 217.36 164.62 217.91 167.07 219.54 167.73 220.08 168.2 220.63 167.82 221.17 168.3 221.71 169.25 223.35 170.15 223.89 169.37 224.43 171.48 224.98 172.33 225.52 173.03 227.15 174.53 228.24 171.67 228.78 171.85 229.33 172.55 230.96 172.56 232.05 172.19 232.59 174.26 233.13 170.92 234.77 171.13 235.31 167.96 235.85 167.57 236.4 166.79 236.94 166.47 238.57 167.18 239.12 168.21 239.66 166.82 240.2 165.5 240.75 164.16 242.92 165.5 243.47 166.33 244.01 166.43 244.56 164.28 246.19 164 246.73 162.57 247.27 161.02 247.82 160.15 248.36 159.43 249.99 158.65 250.54 158.59 251.08 158.81 251.63 160.01 252.17 159.94 253.8 159.79 254.34 157.63 254.89 157.49 255.43 158.02 255.98 157.41 258.15 157.16 258.7 154.79 259.24 151.22 259.78 151.65 261.41 149.98 261.96 150.62 262.5 150.47 263.05 151.61 263.59 151.6 265.22 151.2 265.77 151.3 266.31 152.89 266.85 153.63 267.4 155.09 269.03 153.22 269.57 152.68 270.12 152.38 270.66 153.41 271.2 153.01 272.84 151.87 273.38 151.34 273.92 151.62 274.47 149.73 275.01 153.49 276.64 152.37 277.19 151.96 277.73 151.35 278.27 150.92 278.82 149.79 280.45 147.67 280.99 147.76 281.54 146.5 282.08 145.2 282.62 145.14 284.26 146.03 284.8 148.67 285.34 148.51 285.89 149.19 286.43 148.58 288.06 148.6 288.61 148.12 289.15 148.78 289.69 150.09 291.87 151.28 292.41 150.86 292.96 151.47 293.5 148.53 294.05 148.04 295.68 148.11 296.22 147.81 296.76 150.08 297.31 150.05 297.85 147.6 299.48 148.16 300.03 151.2 300.57 150.19 301.12 149.78 301.66 148.57 303.29 153.57 303.83 151.28 304.38 150.86 304.92 150.63 305.47 152.75 307.1 153.2 307.64 150.89 308.19 153.59 308.73 155.47 309.27 155.33 311.45 156.49 311.99 155.5 312.54 155.35 313.08 157.32 314.71 155.18 315.26 153.6 315.8 153.66 316.34 153.26 316.89 153.4 318.52 153.1 319.06 150.48 319.61 150.52 320.15 149.96 320.69 150.67 322.33 152.4 322.87 150.3 323.41 149.45 323.96 148.83 324.5 149.09 326.13 149.67 326.68 149.77 327.22 147.02 327.76 145.94 328.31 144.01 329.94 142.95 330.48 144.07 331.03 144.28 332.11 144.81 333.75 146.61 334.29 146.73 334.83 147.69 335.38 148.48 335.92 147.27 337.55 146.65 338.1 145.59 338.64 147.18 339.18 146.65 339.73 145.56 341.36 145.53 341.9 145.33 342.45 145.79 342.99 136.42 343.54 134.18 345.17 136.16 345.71 136.84 346.25 137.76 346.8 139.01 347.34 140.15 348.97 141.64 349.52 139.95 350.06 140.13 350.61 137.46 351.15 139.55 352.78 140.63 353.32 138.57 353.87 142.12 354.41 141.97 354.96 139.87 356.59 138.3 357.13 139.16 357.68 139.21 358.22 139.67 358.76 142.25 360.39 142 360.94 143.5 361.48 142.41 362.03 139.87 362.57 140.29 364.75 141.02 365.29 138.06 365.83 136.82 366.38 136.93 368.01 136.57 368.55 133.44 369.1 133.08 369.64 132.61 370.18 133.01 371.82 134 372.36 133.09 372.9 133.31 373.45 132.86 373.99 136.47 375.62 135.52 376.17 138.97 376.71 136.79 377.25 138.45 377.8 138.33 379.43 137.42 379.97 138.03 380.52 140.44 381.06 139.3 381.6 137.61 383.24 138.53 383.78 139.17 384.32 139.34 384.87 137.01 385.41 135.09 387.04 137.16 387.59 136.06 388.13 137.82 388.67 137.08 389.22 137.79 390.85 138.19 391.39 137.44 391.94 137.93 392.48 121.87 393.03 118.09 394.66 115.65 395.2 113.75 395.74 115.73 396.29 118.1 396.83 116.18 398.46 115.08 399.01 115.11 399.55 116.73 400.1 116.45 400.64 116.57 402.27 117.53 402.81 118.48 403.36 119.55 403.9 121.12 404.45 120.84 406.08 116.97 406.62 117.7 407.17 116.05 407.71 117.16 408.25 117.03 409.88 116.47 410.43 113.74 410.97 113.97 412.06 115.14 413.69 114.51 414.24 115.08 414.78 116.16 415.32 114.35 415.87 112.48 417.5 112.11 418.04 112.35 418.59 112.19 419.13 111.71 419.67 113.04 421.31 114.09 421.85 111.47 422.39 111.75 422.94 112.56 423.48 111.17 425.11 111.76 425.66 111.98 426.74 111.76 427.29 112.41 428.92 112.64 429.46 113.03 430.55 113.63 431.09 114.16 432.73 114.5 433.27 114.11 433.81 114.25 434.36 113.11 434.9 115.09 436.53 112.13 437.08 111.28 437.62 111.16 438.16 111.75 438.71 110.97 440.88 116.36 441.43 115.82 441.97 115.05 442.52 116.61 444.15 118.7 444.69 117.81 445.23 118.95 445.78 115.53 446.32 118.91 447.95 117.32 448.5 116.65 449.04 113.95 449.59 114.42 450.13 117.42 451.76 116.88 452.3 115.33 452.85 116.34 453.39 117.04 453.94 117.43 456.11 117.46 456.66 116.07 457.2 125.31 457.74 123.47 459.37 126.08 459.92 127.61 460.46 126.24 461.01 131.13 461.55 133.74 463.18 129.61 463.73 130.08 464.27 126.13 464.81 130.2 465.36 133.25 466.99 143.27 467.53 137.65 468.08 141.81 468.62 152.32 469.16 147.7 470.8 158.86 471.34 155.42 471.88 164.34 472.43 161.54 472.97 166.21 474.6 169.78 475.15 156.19 475.69 155.52 476.23 145.74 476.78 155.46 478.41 149.19 478.95 150.48 479.5 155.8 480.04 155.33 480.58 159.83 482.22 154.38 482.76 153.36 483.3 150.34 483.85 147.8 486.02 150.95 486.57 149.13 487.11 156.05 487.65 156.32 488.2 149.91 489.83 153.52 490.37 155.37 490.92 154.97 491.46 152.49 492.01 151.04 493.64 147.34 494.18 148.25 494.72 141.71 495.27 148.11 495.81 150.29 497.44 150.72 497.99 151.09 498.53 151.64 499.08 148.98 499.62 144.18 501.25 146.02 501.79 151.2 502.34 155.94 502.88 152.94 503.43 150.53 505.06 143.47 505.6 145.91 506.15 146.06 506.69 146.08 507.23 145.86 509.41 142.67 509.95 137.17 510.5 137.7 511.04 138.52 512.67 137.36 513.22 136.67 513.76 134.73 514.3 133.59 514.85 132.61 516.48 132.36 517.02 133.63 517.57 132.61 518.11 144.89 518.65 143.14 520.28 142.35 520.83 138.46 521.37 139.74 521.92 140.34 522.46 140.02 524.09 139.42 524.64 140.46 525.18 145.65 525.72 143.45 526.27 146.43 527.9 143.45 528.44 141 528.99 143.36 529.53 141.7 531.71 140.73 532.25 142.29 532.79 144.4 533.34 147.07 533.88 143.97 535.51 145.43 536.06 142.25 536.6 140.8 537.14 141.45 537.69 141.94 539.32 142.26 539.86 140.47 540.41 139.12 540.95 133.93 541.49 131.97 543.13 130.76 543.67 134.61 544.21 132.8 544.76 135.44 545.3 137 546.93 133.6 547.48 132.43 548.02 131.56 548.56 132.15 549.11 129.94 550.74 126.94 551.28 126.48 551.83 125.98 552.37 127.37 552.92 126.58 554.55 126.19 555.09 126.76 555.63 128.57 556.18 127.82 556.72 130 558.35 127.22 558.9 128.35 559.44 127.86 559.99 127.52 560.53 126.64 562.16 128.33 562.7 125.74 563.25 123.05 563.79 125.79 564.34 124.61 566.51 129.54 567.06 127.21 567.6 129.19 568.14 128.17 569.77 126.88 570.32 126.52 570.86 126.47 571.41 125.18 571.95 126.24 573.58 132.7 574.13 133.26 574.67 133.31 575.21 131.92 575.76 131.05 577.39 129.05 577.93 131.64 578.48 131.75 579.02 128.47 579.56 126.99 581.2 124.15 581.74 126.32 582.28 122.78 582.83 119.72 583.37 120.02 585 119.02 585.55 119.54 586.09 119.31 586.63 118.25 587.18 118.22 588.81 119.23 589.35 119.43 589.9 119.72 590.44 121.24 590.98 120.63 592.62 124.67 593.16 123.47 593.7 126.55 594.25 123.69 594.79 123.35 596.42 121.02 596.97 120.21 597.51 124.23 598.05 119.57 598.6 119.35 600.23 113.42 600.77 111.27 601.32 113.41 601.86 116.03 602.41 112.23 604.04 109.06 604.58 108.22 605.12 111.67 605.67 111.91 606.21 111.47 607.84 109.5 608.39 106.07 608.93 107.56 610.02 107.79 611.65 111.96 612.19 108.99 612.74 110.39 613.28 109.93 613.83 107.43 615.46 108.75 616 108.05 616.55 109.19 617.09 106.5 617.63 107.73 619.26 109.81 619.81 106.98 620.35 109.13 620.9 109.58 621.44 112.03 623.07 110.9 623.62 112.31 624.16 111.13 624.7 111.57 626.88 111.22 627.42 111.51 627.97 110.31 628.51 109.59 630.69 109.64 631.23 105.47 631.77 95.88 632.32 94.18 632.86 95.53" />
    </g>
    <path d="M33 258v-3M81.95 258v-3M131.44 258v-3M181.47 258v-3M231.5 258v-3M280.45 258v-3M329.94 258v-3M379.97 258v-3M430.01 258v-3M479.5 258v-3M528.99 258v-3M579.02 258v-3M629.05 258v-3M678 258v-3" stroke="rgb(0,0,0)" fill="none" />
    <path stroke="rgb(0,0,0)" d="M28 255h655" stroke-width="2px" />
    <g font-family="inherit" font-size="10px" fill="rgb(0,0,0)"><text x="33" y="268.5" text-anchor="middle">
            <tspan x="33" dy="0">Jan</tspan>
            <tspan x="33" dy="10">2018</tspan>
        </text><text x="81.95" y="268.5" text-anchor="middle">
            <tspan x="81.95" dy="0">Apr</tspan>
            <tspan x="81.95" dy="10">2018</tspan>
        </text><text x="131.44" y="268.5" text-anchor="middle">
            <tspan x="131.44" dy="0">Jul</tspan>
            <tspan x="131.44" dy="10">2018</tspan>
        </text><text x="181.47" y="268.5" text-anchor="middle">
            <tspan x="181.47" dy="0">Oct</tspan>
            <tspan x="181.47" dy="10">2018</tspan>
        </text><text x="231.5" y="268.5" text-anchor="middle">
            <tspan x="231.5" dy="0">Jan</tspan>
            <tspan x="231.5" dy="10">2019</tspan>
        </text><text x="280.45" y="268.5" text-anchor="middle">
            <tspan x="280.45" dy="0">Apr</tspan>
            <tspan x="280.45" dy="10">2019</tspan>
        </text><text x="329.94" y="268.5" text-anchor="middle">
            <tspan x="329.94" dy="0">Jul</tspan>
            <tspan x="329.94" dy="10">2019</tspan>
        </text><text x="379.97" y="268.5" text-anchor="middle">
            <tspan x="379.97" dy="0">Oct</tspan>
            <tspan x="379.97" dy="10">2019</tspan>
        </text><text x="430.01" y="268.5" text-anchor="middle">
            <tspan x="430.01" dy="0">Jan</tspan>
            <tspan x="430.01" dy="10">2020</tspan>
        </text><text x="479.5" y="268.5" text-anchor="middle">
            <tspan x="479.5" dy="0">Apr</tspan>
            <tspan x="479.5" dy="10">2020</tspan>
        </text><text x="528.99" y="268.5" text-anchor="middle">
            <tspan x="528.99" dy="0">Jul</tspan>
            <tspan x="528.99" dy="10">2020</tspan>
        </text><text x="579.02" y="268.5" text-anchor="middle">
            <tspan x="579.02" dy="0">Oct</tspan>
            <tspan x="579.02" dy="10">2020</tspan>
        </text><text x="629.05" y="268.5" text-anchor="middle">
            <tspan x="629.05" dy="0">Jan</tspan>
            <tspan x="629.05" dy="10">2021</tspan>
        </text><text x="678" y="268.5" text-anchor="middle">
            <tspan x="678" dy="0">Apr</tspan>
            <tspan x="678" dy="10">2021</tspan>
        </text></g>
    <path d="M30 255h3M30 230.71h3M30 206.43h3M30 182.14h3M30 157.86h3M30 133.57h3M30 109.29h3M30 85h3" stroke="rgb(0,0,0)" fill="none" />
    <path stroke="rgb(0,0,0)" d="M33 80v180" stroke-width="2px" />
    <g font-family="inherit" font-size="10px" fill="rgb(0,0,0)"><text x="28" y="258.5" text-anchor="end">0</text><text x="28" y="234.21" text-anchor="end">20</text><text x="28" y="209.93" text-anchor="end">40</text><text x="28" y="185.64" text-anchor="end">60</text><text x="28" y="161.36" text-anchor="end">80</text><text x="28" y="137.07" text-anchor="end">100</text><text x="28" y="112.79" text-anchor="end">120</text><text x="28" y="88.5" text-anchor="end">140</text></g>
</svg>

Let me know if you need more info. Thanks!

Here are the images of the graphs:
Screen Shot 2021-01-08 at 12 19 27 PM
Screen Shot 2021-01-08 at 12 19 21 PM

That does look like a bug. Could you please provide me with some PHP code that reproduces it, and I'll see if I can fix it.

(I don't need all the data, just take the first and last entries to make the graph pick the right size.)

Thanks for looking. Here is he basic code. Let me know if you need more.

$guidelines = array ( 0 => array ( 0 => 'May 29 2020', 1 => 'Strong Buy 45.00 May 29', 2 => 'x', 'stroke_width' => 2, 'dash' => '3', 'text_position' => 'outside top', 'text_padding' => 5, 'font' => 'Arial', ), 1 => array ( 0 => 'Jun 9 2020', 1 => 'Underperform 39.00 Jun 9', 2 => 'x', 'stroke_width' => 2, 'dash' => '3', 'text_position' => 'outside top', 'text_padding' => 40, 'font' => 'Arial', ), 2 => array ( 0 => 'Aug 12 2020', 1 => 'Hold N/A Aug 12', 2 => 'x', 'stroke_width' => 2, 'dash' => '3', 'text_position' => 'outside top', 'text_padding' => 5, 'font' => 'Arial', ), 3 => array ( 0 => 'Oct 23 2020', 1 => 'Outperform 38.00 Oct 23', 2 => 'x', 'stroke_width' => 2, 'dash' => '3', 'text_position' => 'outside top', 'text_padding' => 40, 'font' => 'Arial', ), 4 => array ( 0 => 'Nov 18 2020', 1 => 'Hold N/A Nov 18', 2 => 'x', 'stroke_width' => 2, 'dash' => '3', 'text_position' => 'outside top', 'text_padding' => 5, 'font' => 'Arial', ), );

$values = array ( '2018-01-16' => 62.580535888671875, '2021-01-14' => 49.619998931884766 );

            $settings = [
                'marker_size' => 0,
                'datetime_keys' => true,
                'datetime_text_format' => "M\nY",
                'grid_division_h' => '3 month',
                'back_colour' => "rgba(51,121,183,.1)",
                'back_stroke_width' => 0,
                'pad_top' => 80,
                'line_stroke_width' => 1,
                'graph_title_font_size' => 18,
                'axis_font' => 'inherit',
                "guideline" => $guidelines
             ];
            $width = 700;
            $height = 290;
      }

        $graph = new Goat1000\SVGGraph\SVGGraph($width, $height, $settings);

        $graph->values($values);
        return $graph->fetch('LineGraph', false);

This should be fixed by dd3ceb6

The bug was caused by the date being converted to an integer and then converted again later on. For most dates the second conversion fails, but for the Oct 23 2020 value it successfully converts to a point sometime in the year 1200.

I can confirm that the fix works. Thanks so much for the quick turnaround.