![](/img/trans.png)
[英]Hicharts data API for line graph using datatime and matching x-axis to y-axis
[英]Find a value of x-axis given a certain y-axis from a graph with a lineair line
假设边缘与图形图像中的区域之间存在线性相关性,下面的代码将计算任何给定区域的边缘。
变量$certainArea
可用作任何给定区域的输入。
<?php
$edge1 = 60;
$edge2 = 13;
$area1 = 60000;
$area2 = 960000;
$inclination = ($area1 - $area2) / ($edge1 - $edge2);
$certainArea = 80000;
$edgeOfCertainArea = $edge1 - (($area1 - $certainArea) / $inclination);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.