« first day (2652 days earlier)      last day (1465 days later) » 

12:12 AM
@Natty tp
 
 
4 hours later…
3:46 AM
I have a local JSON file something like this,
{"chart":
{
"data":[
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 3, 6, 4, 5, 2, 3, 5, 4],
"type": "scatter",
"name":"Plot 1"
},
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 4, 7, 8, 3, 6, 3, 3, 4],
"type": "scatter",
"name":"Plot 2"
},
],

"layout":{
"showlegend": true,
"legend": {"orientation": "h"}
}
}
}

I can easily plot this into ploty,
<Plot data={graph.chart.data} layout={graph.chart.layout} /><Plot data=
{graph.chart.data} layout={graph.chart.layout} />
 
1 message moved from JavaScript
 
I have a local JSON file something like this,
{"chart":
{
"data":[
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 3, 6, 4, 5, 2, 3, 5, 4],
"type": "scatter",
"name":"Plot 1"
},
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 4, 7, 8, 3, 6, 3, 3, 4],
"type": "scatter",
"name":"Plot 2"
},
],

"layout":{
"showlegend": true,
"legend": {"orientation": "h"}
}
}
}

I can easily plot this into ploty with the below code,

<Plot data={graph.chart.data} layout={graph.chart.layout} /><Plot data=
{graph.chart.data} layout={graph.chart.layout} />
I have a local JSON file something like this,
{"chart":
{
"data":[
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 3, 6, 4, 5, 2, 3, 5, 4],
"type": "scatter",
"name":"Plot 1"
},
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 4, 7, 8, 3, 6, 3, 3, 4],
"type": "scatter",
"name":"Plot 2"
},
],

"layout":{
"showlegend": true,
"legend": {"orientation": "h"}
}
}
}

I can easily plot this into ploty,
<Plot data={graph.chart.data} layout={graph.chart.layout} /><Plot data=
{graph.chart.data} layout={graph.chart.layout} />
 
1 message moved from JavaScript
 
{"chart":
{
"data":[
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 3, 6, 4, 5, 2, 3, 5, 4],
"type": "scatter",
"name":"Plot 1"
},
{
"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
"y": [0, 4, 7, 8, 3, 6, 3, 3, 4],
"type": "scatter",
"name":"Plot 2"
},
],

"layout":{
"showlegend": true,
"legend": {"orientation": "h"}
}
}
}

If I try to read this JSON data from a local file it works fine with, <Plot data={graph.chart.data} layout={graph.chart.layout} />
 
1 message moved from JavaScript
 
 
6 hours later…
10:06 AM
ahem
 
 
4 hours later…
user7575848
2:05 PM
$keywords = "";

foreach ($response->getResults() as $result) {

printf(
"Keyword idea text '%s' has %d average monthly searches and competition as %d.%s",
$result->getText()->getValue(),
is_null($result->getKeywordIdeaMetrics()) ?
0 : $result->getKeywordIdeaMetrics()->getAvgMonthlySearches()->getValue(),
is_null($result->getKeywordIdeaMetrics()) ?
0 : $result->getKeywordIdeaMetrics()->getCompetition(),
PHP_EOL
);

$keywords .= $result->getText()->getValue().",";

return $keywords;
 
user7575848
$keywords .= $result->getText()->getValue().",";
echo "result: ".$result->getText()->getValue();
return $keywords;
 
2 messages moved from PHP
 
@Natty tp
 
 
1 hour later…
4:19 PM
@Natty ne
 
 
5 hours later…
9:29 PM
I have this little question here: stackoverflow.com/questions/61490117/…
 

« first day (2652 days earlier)      last day (1465 days later) »