本文整理汇总了PHP中ezcGraphRenderer::drawOdometerMarker方法的典型用法代码示例。如果您正苦于以下问题:PHP ezcGraphRenderer::drawOdometerMarker方法的具体用法?PHP ezcGraphRenderer::drawOdometerMarker怎么用?PHP ezcGraphRenderer::drawOdometerMarker使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ezcGraphRenderer
的用法示例。
在下文中一共展示了ezcGraphRenderer::drawOdometerMarker方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderData
/**
* Render the assigned data
*
* Will renderer all charts data in the remaining boundings after drawing
* all other chart elements. The data will be rendered depending on the
* settings in the dataset.
*
* @param ezcGraphRenderer $renderer Renderer
* @param ezcGraphBoundings $boundings Remaining boundings
* @return void
*/
protected function renderData(ezcGraphRenderer $renderer, ezcGraphBoundings $boundings)
{
// Draw the odometer data
$dataset = $this->data->rewind();
foreach ($dataset as $key => $value) {
$renderer->drawOdometerMarker($boundings, $this->elements['axis']->axisLabelRenderer->modifyChartDataPosition(new ezcGraphCoordinate($this->elements['axis']->getCoordinate($value), 0)), $dataset->symbol[$key], $dataset->color[$key], $this->options->markerWidth);
}
}