<template>
<div>
<div id="chart-container">FusionCharts XT will load here!</div>
</div>
</template>
<script>
// Include the core fusioncharts file from core
import FusionCharts from 'fusioncharts/core'
// Include the chart from viz folder
import Column2D from 'fusioncharts/viz/column2d'
// Include the fusion theme
import FusionTheme from 'fusioncharts/themes/es/fusioncharts.theme.fusion'
// Add the chart and theme as dependency
// E.g. FusionCharts.addDep(ChartType)
FusionCharts.addDep(Column2D)
FusionCharts.addDep(FusionTheme)
</script>
// Create a JSON object to store the chart configurations
const chartConfig = {
// チャートのタイプ
type: "column2d",
// Set the container object
renderAt: "chart-container",
// Specify the width of the chart
width: "100%",
// Specify the height of the chart
height: "400",
// Set the type of data
dataFormat: "json",
dataSource: {
chart: {
// Set the chart caption
caption: "Countries With Most Oil Reserves [2017-18]",
// Set the chart subcaption
subCaption: "In MMbbl = One Million barrels",
// Set the x-axis name
xAxisName: "Country",
// Set the y-axis name
yAxisName: "Reserves (MMbbl)",
numberSuffix: "K",
// Set the theme for your chart
theme: "fusion"
},
// Chart Data from Step 2
data: chartData
}
};
function get_current_url() {
return(is_ssl()? 'https':'http').'://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
}
$current_uri = get_current_url();
$home_uri = home_url('/');
// define the wpseo_title callback
function my_en_title($title) {
return 'Welcome to the new environment|Hellow World!';
}
// define the wpseo_metadesc callback
function filter_wpseo_metadesc( $trim ) {
// make filter magic happen here...
return 'Hellow world is a whole new approach to internet environments, one designed with the knowledge and know-how based on xxx years....';
};
if($current_uri == $home_uri.'en/' || $current_uri == $home_uri.'en') {
add_filter('wpseo_title', 'my_en_title');
add_filter( 'wpseo_metadesc', 'filter_wpseo_metadesc', 10, 1 );
}
Google Apps Script is a rapid application development platform that makes it fast and easy to create business applications that integrate with Google Workspace. You write code in modern JavaScript and have access to built-in libraries for favorite Google Workspace applications like Gmail, Calendar, Drive, and more. There’s nothing to install—we give you a code editor right in your browser, and your scripts run on Google’s servers.
Exception: MailApp.sendEmail を呼び出す権限がありません。必要な権限: https://www.googleapis.com/auth/script.send_mail
at autoNotify(コード:28:11)
https://www.googleapis.com/auth/script.send_mail
You are receiving this error either because your input OAuth2 scope name is invalid or it refers to a newer scope that is outside the domain of this legacy API.
This API was built at a time when the scope name format was not yet standardized. This is no longer the case and all valid scope names (both old and new) are catalogued at https://developers.google.com/identity/protocols/oauth2/scopes. Use that webpage to lookup (manually) the scope name associated with the API you are trying to call and use it to craft your OAuth2 request.