1, the morning has been studying echarts diagram how to get, Echarts has two official website, one is Echarts3, one is echarts2, I have been using the ECHARTS3, the instance of the inside of several complex is called an XML, This XML is a well-known diagram (graph only?). ) software Gephi export format GEXF, the idea is to dynamically generate this XML, later found a bit complicated, and then looked at a few simple instances, and then combined with the document, found that can be directly written in JSON format, involving some array encapsulation, PHP array Append method:
$nodes = array(); $nodes[] = XXX, JavaScript's Append method:
var nodes = new Array(); nodes.push('XXX');
2, noon to deal with the problem is found that the customer service personnel named a letter of the time there is a character I can not parse, Unicode code is/u00a0, the ordinary space is/u0020, later check the information know/u00a0 this space is called non breaking space, is commonly used on the Web page
, Python with GBK to encode/u00a0 will error! Customer service staff estimate is to copy and paste the way to name this file, so caused the problem! From this point, it can be inferred that Wang gave me the name of the Unicode character.
3, PHP fetch SQL query all results
$nodes = array();
while($row = mysql_fetch_array($result))
{
$row_hash = array("name" => $row['Id']);
$nodes[] = $row_hash;
}
4, also do some boring work is the interface English change Chinese, ppt production and so on
5, carried out some debug, found that it is not my pot AH
6, and colleagues to discuss the letter audit-related decision-making issues, the basic Shaw colleague's argument is that the overdue class weight should be very large, and Tony too value the data, regardless of whether the data is contrary to common sense, I found that Tony also want to according to some not so accurate approval to do some adjustment, so I think Tony too value the data!
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Echarts diagram Unicode encoding phpsql 20160621 review, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.