# m-chart/1.2.1/components/templates/chart-meta-box.php

M Chart, version 1.2.1. 9 lines.

- Page: https://pluginprobe.com/plugins/m-chart/1.2.1/code/components/templates/chart-meta-box.php
- Raw: https://pluginprobe.com/plugins/m-chart/1.2.1/raw/components/templates/chart-meta-box.php
- Modified: 2015-04-27T18:32:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/m-chart/1.2.1/code/components/templates/chart-meta-box.php#L10-L20`.

```php
<?php
// Show what the graph looks like
echo $chart;
?>
<canvas id="m-chart-canvas-render-<?php echo absint( $post->ID ); ?>" class="hide"></canvas>
<textarea name="<?php echo esc_attr( $this->get_field_name( 'img' ) ); ?>" rows="8" cols="40" id="<?php echo esc_attr( $this->get_field_id( 'img' ) ); ?>" class="hide"></textarea>
<?php
// Load the various settings and controls this chart's library
require __DIR__ . '/' . $post_meta['library'] . '-settings.php';
```
