Нужно создать массив и вставить в Google Chart.
1 USDНужно создать массив по формуле и вставить в график Google Chart.
<?php
for($r=1; $r<=4; $r++){
for($i=1; $i<10; $i++){
$x_n_1=$i+1;
$x_n=$i;
$x_n_2=$r*$x_n*(1-$x_n);
print_r( $x_n_2."<br>");
}}
?>
<span class="redactor-invisible-space">
<span class="redactor-invisible-space">
Нужно вставить $r и </span></span>$x_n_2 в Google Chart
<span class="redactor-invisible-space">
<span class="redactor-invisible-space">
<span class="redactor-invisible-space">В ручную это выглядит примерно так:
</span></span></span><html>
<head>
<script type="text/javascript"
src="https://www.google.com/jsapi?autoload={
'modules':[{
'name':'visualization',
'version':'1',
'packages':['corechart']
}]
}"></script>
<script type="text/javascript">
google.setOnLoadCallback(<em>drawChart</em>);
function <em>drawChart</em>() {
var data = google.visualization.arrayToDataTable([
['I', 'X', ],
['1', 0],
['', -2],
['', -6],
['', -12],
['', -20],
['', -30],
['', -42],
['', -56],
['', -72],
['2',0],
['',-6],
['', -18],
['',-36],
['',-60],
['',-90],
['',-126],
['',-168],
['', -216],
['3', 0],
['',-6],
['', -18],
['', -36],
['', -60],
['', -90],
['', -126],
['', -168],
['', -216],
['4', 0],
['',-8],
['',-24],
['',-48],
['',-80],
['',-120],
['',-168],
['',-224],
['', -288],
]);
var options = {
title: 'Залежність х від u',
curveType: 'function',
legend: { position: 'bottom' }
};
var chart = new google.visualization.LineChart(document.getElementById('curve_chart'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="curve_chart" style="width: 900px; height: 500px"></div>
</body>
</html>
<span class="redactor-invisible-space">
<span class="redactor-invisible-space">
<span class="redactor-invisible-space">
<span class="redactor-invisible-space">
Т.е нужен график c осью Х=$r и Y=$i. $r бутет стабильно 1-4. </span></span></span></span>$i нужно будет менять... может быть и 1-100 и 1-1000.
Оплата только Приват Банк.
Client's review of cooperation with Andrey Boyko
Нужно создать массив и вставить в Google Chart.Работу сделал очень быстро и понял суть задания. Очень понравился. Рекомендую!
![]()
Freelancer's review of cooperation with client
Нужно создать массив и вставить в Google Chart.Понятное ТЗ, своевременная и быстрая оплата, постоянно на связи. С Иваном можно (и нужно!) работать.
-
Winning proposal1 day1 USD
246 9 0 Winning proposal1 day1 USDСделал.
Current freelance projects in the category PHP
Transfer the fully ready adaptive HTML5 structure to WordPress.
268 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 2 hours 18 minutes back ∙ 28 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 18 hours 12 minutes back ∙ 21 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 1 day 15 hours back ∙ 33 proposals |
A developer is needed to complete and integrate a project for automatic data collection and processing.
16 USD
The main part of the parser has already been implemented. The parser works in a Windows environment through Microsoft Edge: the site has anti-bot protection, so data collection is performed not through direct HTTP requests, but through a live browser session. The scripts control… PHP, Web Programming ∙ 1 day 21 hours back ∙ 24 proposals |
Updating plugins and themes for the WP site putevka.uz"A technical audit of the WordPress site needs to be conducted, checking the relevance, security, and compatibility of the installed plugins and theme. Based on the results, legal options for updating, replacing outdated solutions, or transitioning to officially available… HTML & CSS, PHP ∙ 2 days back ∙ 40 proposals |