new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Chart.js · all subjects

scales/logarithmic

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Logarithmic axis purpose and placement

The logarithmic scale is used to chart numerical data and can be placed on either the x or y-axis. Logarithmic interpolation is used to determine where a value lies on the axis.

Logarithmic axis tick format option

The logarithmic axis tick configuration has a `format` option (type: object, namespace: options.scales[scaleId].ticks) that accepts Intl.NumberFormat options used by the default label formatter.

Logarithmic axis internal data format

The logarithmic scale internally uses numeric data.

Custom scale with logarithmic type example

A bar chart can define a custom scale with logarithmic type positioned on the right, with the axis automatically determined as 'y' from the position. Example: new Chart(ctx, { type: 'bar', data: { datasets: [{ data: [1, 2, 3] }] }, options: { scales: { myScale: { type: 'logarithmic', position: 'right' } } } });

Logarithmic scale configuration

To configure a logarithmic scale on an axis, set the scale's type property to 'logarithmic'. For example, in a line chart with a y-axis using logarithmic scaling, configure the scales as: scales: { y: { display: true, type: 'logarithmic' } }.

Log scale with line chart example

This example shows a line chart using a logarithmic y-axis with randomly generated data across 7 months. The configuration sets type: 'line', includes a title plugin, and configures the y-axis with type: 'logarithmic'. The data is generated using logNumbers function that creates values by multiplying a random number between 1-10 by 10 raised to a random power between 0-5.

Give your agent this brain