Статьи

Очень простая горизонтальная гистограмма jQuery

easy-jquery-bar-chart

Это как настроить вашу собственную гистограмму jQuery всего за несколько простых шагов. Демонстрация представляет собой горизонтальную гистограмму, но вы можете изменить настройки плагина на вертикальные, изменить скорость и цвета.

демонстрация

инструкции

  1. Загрузите плагин jquery.charts.js
  2. Скопируйте код HTML ниже
  3. Изменить данные в таблице

Это оно! 🙂

HTML и JQuery код

< ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1  
< ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1
< ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1 < ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1
< ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1 < ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1
< ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1 < ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1
< ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1 < ?xml version="1.0" encoding="UTF-8"?> < !doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Statistics Option Popularity Total 100 Burnt 5 Buried 1