Home >WeChat Applet >WeChat Development >A brief discussion on K-line core architecture design
Preface: Our purpose is to use a smooth curve to represent moving averages, etc., rather than a polyline with obvious turning points. So we have to continue to explore the API. We found that in the canvas API, there are 2 beZierCurveTo(num1, num2, num3, num4, x, y) that can draw curves Both APIs of quadraticCurveTo(num1, num2, x, y) draw paths through Bezier curves. Fortunately, when I was learning PS, I also had a certain degree of proficiency in the specific performance of Bezier curves, so I knew that to determine a curve path composed of multiple points, each turning point must have 2 control points to control the curve. The performance of the curve is that there can only be one control point at the starting point and end point of the curve. Therefore, when we draw the starting point and end point, we have to use quadraticCurveTo, and when drawing the middle point, we use beZierCurveTo. The difficulty now is how to calculate them through the known points to pass through
1. WeChat applet uses canvas to create K-line examples in detail
Introduction: This article mainly introduces the relevant information on the detailed explanation of K-line examples using canvas in the WeChat applet. Friends in need can refer to the following
2. php stock K-line chart generation code_PHP tutorial
Introduction: php stock K-line chart generation code. This program implements php drawing histogram // Its design idea is: first use imagecreate() to generate a blank graphic; the program is implemented as follows: // Two different colors are required, one for positive numbers
3. How to use php to generate a K-line chart similar to the stock market
Introduction: How to use php to generate a K-line chart similar to the stock market Picture if: I have a one-dimensional array: $data = array ( array('time'=>'XXXX-XX-XX_1', 'moeny'=>'0.00'), arra
4. How to solve the problem when installing chartdirector in php in windows environment
Introduction: When installing chartdirector in php in windows environment, you need to use php to draw the K line Figure, Baidu later said that chartdirector can be used. After downloading, access locally: http://localhost/k/ChartDirector/lib/FinanceChart.php error Error Loading ChartDirector 
##5. How to use php to generate a K-line chart similar to the stock market
Introduction: How to use php to generate a K-line chart similar to the stock market If: I have a one-dimensional array : $ Data = Array (Array ('Time' = & GT; 'XXXX-XX-XX_1', 'Moeny' = & GT #php stock K-line chart generation code
Introduction: php stock K-line chart generation code. This program implements php drawing histogram // Its design idea is: First, use Use imagecreate() to generate a blank graphic; the program is implemented as follows: //Two different colors are required, one positive number
7.JSP calls JavaBean on the web page Dynamically generate histograms on _MySQL
Introduction: We often see some dynamically updated pictures on web pages, the most common of which is the K-line chart of stocks. This article attempts to Through a simple example, I will show you how to call JavaBean through JSP to dynamically generate a histogram on the web page.
8.PHP generates dynamic WAP page (3)_PHP
Introduction: 3. Use PHP to dynamically generate images. WAP applications use a special black and white image format WBMP. We can use some tools to convert existing images into WBMP format and then use them in WML documents. However, if the required images such as K-line charts can be dynamically generated on the WAP site, there will be broad application prospects. Fortunately, PHP's GD library (version 1.8 and above) has
【Related Q&A Recommendations】:
python - Java Interactive stock analysis charting solution?
javascript - In WeChat, are the K-lines in "Tencent Micro Securities" made with H5 technology?
What are the pitfalls of html5 canvas on Android?
javascript What plug-in is used to make the time-sharing chart and K-line chart in Baidu h5的
javascript - How is the K-line chart simulation of echarts implemented?
The above is the detailed content of A brief discussion on K-line core architecture design. For more information, please follow other related articles on the PHP Chinese website!