当前位置: 首页>>代码示例>>PHP>>正文


PHP ScatterPlot::SetCSIMTargets方法代码示例

本文整理汇总了PHP中ScatterPlot::SetCSIMTargets方法的典型用法代码示例。如果您正苦于以下问题:PHP ScatterPlot::SetCSIMTargets方法的具体用法?PHP ScatterPlot::SetCSIMTargets怎么用?PHP ScatterPlot::SetCSIMTargets使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ScatterPlot的用法示例。


在下文中一共展示了ScatterPlot::SetCSIMTargets方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

include_once "../jpgraph.php";
include_once "../jpgraph_scatter.php";
// Some data for the points
$datax = array(3.5, 13.7, 3, 4, 6.2, 6, 3.5, 8, 14, 8, 11.1, 13.7);
$datay = array(10, 22, 12, 13, 17, 20, 16, 19, 30, 31, 40, 43);
// A new scatter graph
$graph = new Graph(300, 200, 'auto');
$graph->SetShadow();
$graph->SetScale("linlin");
//$graph->img->SetMargin(40,40,40,40);
$graph->title->Set("Scatter plot with Image Map");
$graph->title->SetFont(FF_FONT1, FS_BOLD);
// Client side image map targets
$targ = array("pie_csimex1.php#1", "pie_csimex1.php#2", "pie_csimex1.php#3", "pie_csimex1.php#4", "pie_csimex1.php#5", "pie_csimex1.php#6", "pie_csimex1.php#7", "pie_csimex1.php#8", "pie_csimex1.php#9");
// Strings to put as "alts" (and "title" value)
$alts = array("val=%d", "val=%d", "val=%d", "val=%d", "val=%d", "val=%d", "val=%d", "val=%d", "val=%d");
// Create a new scatter plot
$sp1 = new ScatterPlot($datay, $datax);
// Use diamonds as markerss
$sp1->mark->SetType(MARK_DIAMOND);
$sp1->mark->SetWidth(10);
// Set the scatter plot image map targets
$sp1->SetCSIMTargets($targ, $alts);
// Add the plot
$graph->Add($sp1);
// Send back the HTML page which will call this script again
// to retrieve the image.
$graph->StrokeCSIM('scatter_csimex1.php');
开发者ID:Ethennoob,项目名称:Web,代码行数:30,代码来源:scatter_csimex1.php


注:本文中的ScatterPlot::SetCSIMTargets方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。