Git Product home page Git Product logo

Comments (14)

houjing avatar houjing commented on June 8, 2024

где ещё не хватает статистики скорости генерации страниц?

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Хочу огромную такую хуйню с графиками за 24 часа. Но это в будущем.

from uonline.

houjing avatar houjing commented on June 8, 2024

нет ничего более будущего, чем настоящее..)
запилим.
итак, это удел отдельной таблички.
в неё будет писаться каждый доступ к нашему index.php
во время записи, возможно, будем чистить табличку от >24ч давности записей. или не будем, вынести в конфиг это.

from uonline.

m1kc avatar m1kc commented on June 8, 2024

А сделал бы ты для начала #70, #69, #68 и #67.

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Гpафики

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Quick start

<html>
  <head>
    <!--Load the AJAX API-->
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">

      // Load the Visualization API and the piechart package.
      google.load('visualization', '1.0', {'packages':['corechart']});

      // Set a callback to run when the Google Visualization API is loaded.
      google.setOnLoadCallback(drawChart);

      // Callback that creates and populates a data table,
      // instantiates the pie chart, passes in the data and
      // draws it.
      function drawChart() {

        // Create the data table.
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Topping');
        data.addColumn('number', 'Slices');
        data.addRows([
          ['Mushrooms', 3],
          ['Onions', 1],
          ['Olives', 1],
          ['Zucchini', 1],
          ['Pepperoni', 2]
        ]);

        // Set chart options
        var options = {'title':'How Much Pizza I Ate Last Night',
                       'width':400,
                       'height':300};

        // Instantiate and draw our chart, passing in some options.
        var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
        chart.draw(data, options);
      }
    </script>
  </head>

  <body>
    <!--Div that will hold the pie chart-->
    <div id="chart_div"></div>
  </body>
</html>

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Lines

 2013-03-26 02:29:33

function drawVisualization() {
  // Create and populate the data table.
  var data = google.visualization.arrayToDataTable([
    ['x', 'Cats', 'Blanket 1', 'Blanket 2'],
    ['A',   1,       1,           0.5],
    ['B',   2,       0.5,         1],
    ['C',   4,       1,           0.5],
    ['D',   8,       0.5,         1],
    ['E',   7,       1,           0.5],
    ['F',   7,       0.5,         1],
    ['G',   8,       1,           0.5],
    ['H',   4,       0.5,         1],
    ['I',   2,       1,           0.5],
    ['J',   3.5,     0.5,         1],
    ['K',   3,       1,           0.5],
    ['L',   3.5,     0.5,         1],
    ['M',   1,       1,           0.5],
    ['N',   1,       0.5,         1]
  ]);

  // Create and draw the visualization.
  new google.visualization.LineChart(document.getElementById('visualization')).
      draw(data, {curveType: "function",
                  width: 500, height: 200,
                  vAxis: {maxValue: 10}}
          );
}

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Вообще: https://developers.google.com/chart/?hl=ru
Quick start: https://google-developers.appspot.com/chart/interactive/docs/quick_start
Lines: https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart
Вживую: https://code.google.com/apis/ajax/playground/?type=visualization#line_chart

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Взялся - доделывай, хули. Хотя бы графики.

from uonline.

houjing avatar houjing commented on June 8, 2024

не слышно критики

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Правильно, я даже не смотрел. Как выкатим очередную версию - гляну.

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Единиц измерения не вижу. Дат и времён около цифр не вижу.

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Будем считать, что пока хватит. Надеюсь, в будущем мы перейдём на New Relic, и нам больше не придётся писать подобную хуету.

from uonline.

m1kc avatar m1kc commented on June 8, 2024

Предсказанное восемь месяцев назад сбылось: мы действительно перешли на New Relic.

from uonline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.