web-dev-qa-db-ja.com

ビューの集計機能を使用せずに単純なデータからグラフを作成する方法は?

本当に単純なデータからチャートを作成しようとしています。 highchartsライブラリと Visualization API モジュールと Views を使用しています。私がインターネット上で例を示している唯一のタイプのグラフは、集約を含むようです。たとえば、特定のコンテンツタイプのノードで使用されている分類用語の数を知りたい場合、円グラフを使用してパーセンテージを表示します( https://www.youtube.com/watch?v= ot2cFQVgzfA&spfreload = 1 )。

視覚化しようとしているデータの種類は次のようなものです。

  Year   Products
+------+----------+
| 2015 +    78    +
+------+----------+
| 2014 +    74    +
+------+----------+
| 2013 +   123    +
+------+----------+
| 2012 +   106    +
+------+----------+
| 2011 +    59    +
+------+----------+ 
|  ... +    ...   +

X軸をYearに、y軸をSalesに設定します。私のコンテンツタイプには、これらの各フィールドがあります。ビューでは、両方とも整数である年フィールドと売上フィールドのみを含めています。

データをHTMLグリッドとして表示すると、ビューページの下部に次のように表示されます。

Title
Test

Content
2015
78

2014
74

2013
123

2012
106

2011
59

したがって、ビューには両方のフィールドが表示されているようです。しかし、視覚化(Highcharts)-HTMLグリッドの代わりに折れ線グラフを使用すると、次のようになります。

Test Chart

ビューによって生成されるクエリは次のとおりです。

SELECT TOP(10) node.[nid] AS [nid], node.[created] AS [node_created], 'node' AS field_data_field_year_node_entity_type, 'node' AS field_data_field_products_node_entity_type
FROM 
{node} node
WHERE ( (( ([node].[status] = '1') AND ([node].[type] IN  ('year')) )) )
ORDER BY node_created DESC

これにより、ビューはノードと製品フィールドテーブルの両方から結果を取得するためにJOINを実行できないと思います。代わりに、ノードを整数ではなくテキスト値として使用しているため、グラフにはゼロの値が表示されます。興味深いことに、ビューでは、HTMLチャート形式は値を取得できますが、視覚化形式は取得できません。

HighchartsとVisualizationを使用して、2つのデータ列に基づいた単純なグラフを作成するにはどうすればよいですか?

これが私の実際のビューのエクスポートです(一部のフィールド名は私の例とは異なります)。

$view = new view();
$view->name = 'test';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Test';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Test';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'field_year' => 'field_year',
  'field_agricultural_related_produ' => 'field_agricultural_related_produ',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'field_year' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
  'field_agricultural_related_produ' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
);
/* Field: Content: Year */
$handler->display->display_options['fields']['field_year']['id'] = 'field_year';
$handler->display->display_options['fields']['field_year']['table'] = 'field_data_field_year';
$handler->display->display_options['fields']['field_year']['field'] = 'field_year';
$handler->display->display_options['fields']['field_year']['label'] = '';
$handler->display->display_options['fields']['field_year']['element_type'] = '0';
$handler->display->display_options['fields']['field_year']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_year']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_year']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_year']['settings'] = array(
  'thousand_separator' => '',
  'prefix_suffix' => 1,
  'date_conditional_display_field' => '',
  'date_conditional_display_pre_text' => '',
  'date_conditional_display_post_text' => '',
  'linked_field' => array(
    'linked' => 0,
    'destination' => '',
    'advanced' => array(
      'title' => '',
      'target' => '',
      'class' => '',
      'rel' => '',
      'text' => '',
    ),
  ),
);
$handler->display->display_options['fields']['field_year']['field_api_classes'] = TRUE;
/* Field: Content: Products */
$handler->display->display_options['fields']['field_agricultural_related_produ']['id'] = 'field_agricultural_related_produ';
$handler->display->display_options['fields']['field_agricultural_related_produ']['table'] = 'field_data_field_agricultural_related_produ';
$handler->display->display_options['fields']['field_agricultural_related_produ']['field'] = 'field_agricultural_related_produ';
$handler->display->display_options['fields']['field_agricultural_related_produ']['label'] = '';
$handler->display->display_options['fields']['field_agricultural_related_produ']['element_type'] = '0';
$handler->display->display_options['fields']['field_agricultural_related_produ']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_agricultural_related_produ']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_agricultural_related_produ']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_agricultural_related_produ']['settings'] = array(
  'thousand_separator' => '',
  'prefix_suffix' => 1,
  'date_conditional_display_field' => '',
  'date_conditional_display_pre_text' => '',
  'date_conditional_display_post_text' => '',
  'linked_field' => array(
    'linked' => 0,
    'destination' => '',
    'advanced' => array(
      'title' => '',
      'target' => '',
      'class' => '',
      'rel' => '',
      'text' => '',
    ),
  ),
);
$handler->display->display_options['fields']['field_agricultural_related_produ']['field_api_classes'] = TRUE;
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'year' => 'year',
);

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'testvisualization';
2
splunge

パート1:チャートのドキュメントから

グラフを作成しようとしている表形式のデータは、このバリエーションの表形式のデータとかなり似ています(対応する面グラフその下):

enter image description here

上記のスクリーンプリントは プレビュー4:ビューのUIで作成された面グラフ からのものです Charts モジュールを使用して作成されました。

プレビュー 同じコミュニティドキュメントページには、円グラフを表示する別のサンプルがあります(グーグルチャートまたはHighChartsのいずれかをグラフ作成エンジンとして作成すると、次のようになります:

enter image description here

したがって、 Charts モジュールの使用を検討する場合は、これを機能させるのはかなり前向きなはずです。必要に応じて、コミュニティのドキュメントで(方法)詳細を参照してください。

それでも機能しない場合は、「ボーナスチップ」を試してください ビューUIを使用してグラフを作成する手順 (=まず、グラフを作成するデータの表形式のバージョンを作成し、グラフを作成するための入力が実際に正しいことを確認します)。これは、実際にグラフを作成する前にビューを調整するのに役立ちます。

パート2:オンラインチャートのデモ

例1

単一のグラフ、テーブルに接続されておらず、集計なし を見てください。ここからの引用です:

以下のチャート(「charts」モジュールを使用して作成)は、コンテンツタイプ「Article」のすべてのノードを示しています。これには、これらの「マシン名」(+値)を持つ2つのフィールドがあります。

  • "_field_optionlist_"( "年"などの一部の選択リスト値を使用)
  • "_field_free_format_text_"(いくつかの数値が含まれていると想定)

作成しようとしているグラフに非常に近い(同一の)ように見えることに同意します。また、この場合は(繰り返し:not)ビュー集約機能を使用しません。

このチャート(例1)の作成に使用されるエクスポートされたビューは次のとおりです。

_$view = new view();
$view->name = 'visualization_no_aggregation_ex1;
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Visualization no aggregation example1';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Single chart, not attached to a table, and without aggregation';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'chart';
$handler->display->display_options['style_options']['type'] = 'line';
$handler->display->display_options['style_options']['label_field'] = 'body';
$handler->display->display_options['style_options']['data_fields'] = array(
  'field_free_format_text' => 'field_free_format_text',
  'body' => 0,
);
$handler->display->display_options['style_options']['field_colors'] = array(
  'body' => '#2f7ed8',
  'field_free_format_text' => '#233a99',
);
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['content'] = 'The chart below (created using the "charts" module) shows all nodes of content type "Article", which has 2 fields with these "machine names" (+ values):

- "field_optionlist" (with some select list values, such as the "year")
- "field_free_format_text" (assumed to contain some numeric values)';
$handler->display->display_options['header']['area']['format'] = 'filtered_html';
/* Field: Content: Free Format Text */
$handler->display->display_options['fields']['field_free_format_text']['id'] = 'field_free_format_text';
$handler->display->display_options['fields']['field_free_format_text']['table'] = 'field_data_field_free_format_text';
$handler->display->display_options['fields']['field_free_format_text']['field'] = 'field_free_format_text';
$handler->display->display_options['fields']['field_free_format_text']['label'] = 'Products';
/* Field: Content: OptionList */
$handler->display->display_options['fields']['field_optionlist']['id'] = 'field_optionlist';
$handler->display->display_options['fields']['field_optionlist']['table'] = 'field_data_field_optionlist';
$handler->display->display_options['fields']['field_optionlist']['field'] = 'field_optionlist';
$handler->display->display_options['fields']['field_optionlist']['label'] = 'Year';
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'article' => 'article',
);
/* Filter criterion: Content: OptionList (field_optionlist) */
$handler->display->display_options['filters']['field_optionlist_value']['id'] = 'field_optionlist_value';
$handler->display->display_options['filters']['field_optionlist_value']['table'] = 'field_data_field_optionlist';
$handler->display->display_options['filters']['field_optionlist_value']['field'] = 'field_optionlist_value';
$handler->display->display_options['filters']['field_optionlist_value']['value'] = array(
  13 => '13',
  14 => '14',
  15 => '15',
);

/* Display: Chart */
$handler = $view->new_display('page', 'Chart', 'page');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'chart';
$handler->display->display_options['style_options']['type'] = 'column';
$handler->display->display_options['style_options']['xaxis_title'] = 'Year';
$handler->display->display_options['style_options']['yaxis_title'] = 'Nr of Products';
$handler->display->display_options['style_options']['label_field'] = 'field_optionlist';
$handler->display->display_options['style_options']['data_fields'] = array(
  'field_free_format_text' => 'field_free_format_text',
  'field_optionlist' => 0,
);
$handler->display->display_options['style_options']['field_colors'] = array(
  'field_free_format_text' => '#7b0d49',
  'field_optionlist' => '#8bbc21',
);
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['path'] = 'single_chart_with_no_aggregation_not_attached_to_table';
_

例2

しかし、待ってください。他にもあります...つまり、別の例です。実際には、以前のもののわずかに強化されたバージョンです。 アタッチされたチャートを含み、集計なしのテーブル をご覧ください。前の例と似ていますが、同じページにグラフのデータの表形式のビューも含まれ、実際にはそのようなグラフの2つのバリエーション(折れ線グラフと縦棒グラフ)が含まれています。

このチャート(例2)の作成に使用されるエクスポートされたビューは次のとおりです。

_$view = new view();
$view->name = 'visualization_no_aggregation_ex2';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Visualization no aggregation ex2';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Table with attached charts, and without aggregation';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'chart';
$handler->display->display_options['style_options']['type'] = 'line';
$handler->display->display_options['style_options']['label_field'] = 'body';
$handler->display->display_options['style_options']['data_fields'] = array(
  'field_free_format_text' => 'field_free_format_text',
  'body' => 0,
);
$handler->display->display_options['style_options']['field_colors'] = array(
  'body' => '#2f7ed8',
  'field_free_format_text' => '#233a99',
);
/* Footer: Global: Text area */
$handler->display->display_options['footer']['area']['id'] = 'area';
$handler->display->display_options['footer']['area']['table'] = 'views';
$handler->display->display_options['footer']['area']['field'] = 'area';
$handler->display->display_options['footer']['area']['content'] = 'The above table shows all nodes of content type "Article", which has 2 fields with these "machine" names (and their values):
- field_optionlist (with some select list values, such as the "year")
- field_free_format_text (assumed to contain some numeric values)';
$handler->display->display_options['footer']['area']['format'] = 'filtered_html';
/* Field: Content: OptionList */
$handler->display->display_options['fields']['field_optionlist']['id'] = 'field_optionlist';
$handler->display->display_options['fields']['field_optionlist']['table'] = 'field_data_field_optionlist';
$handler->display->display_options['fields']['field_optionlist']['field'] = 'field_optionlist';
$handler->display->display_options['fields']['field_optionlist']['label'] = 'Year';
/* Field: Content: Free Format Text */
$handler->display->display_options['fields']['field_free_format_text']['id'] = 'field_free_format_text';
$handler->display->display_options['fields']['field_free_format_text']['table'] = 'field_data_field_free_format_text';
$handler->display->display_options['fields']['field_free_format_text']['field'] = 'field_free_format_text';
$handler->display->display_options['fields']['field_free_format_text']['label'] = 'Products';
/* Sort criterion: Content: OptionList (field_optionlist) */
$handler->display->display_options['sorts']['field_optionlist_value']['id'] = 'field_optionlist_value';
$handler->display->display_options['sorts']['field_optionlist_value']['table'] = 'field_data_field_optionlist';
$handler->display->display_options['sorts']['field_optionlist_value']['field'] = 'field_optionlist_value';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'article' => 'article',
);
/* Filter criterion: Content: Free Format Text (field_free_format_text) */
$handler->display->display_options['filters']['field_free_format_text_value']['id'] = 'field_free_format_text_value';
$handler->display->display_options['filters']['field_free_format_text_value']['table'] = 'field_data_field_free_format_text';
$handler->display->display_options['filters']['field_free_format_text_value']['field'] = 'field_free_format_text_value';
$handler->display->display_options['filters']['field_free_format_text_value']['operator'] = 'not empty';

/* Display: Table */
$handler = $view->new_display('page', 'Table', 'page');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'field_free_format_text' => 'field_free_format_text',
  'field_optionlist' => 'field_optionlist',
);
$handler->display->display_options['style_options']['default'] = 'field_optionlist';
$handler->display->display_options['style_options']['info'] = array(
  'field_free_format_text' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
  'field_optionlist' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
);
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['content'] = 'The table below shows all nodes of content type "Article", which has 2 fields with these "machine names" (+ values):

- "field_optionlist" (with some select list values, such as the "year")
- "field_free_format_text" (assumed to contain some numeric values)';
$handler->display->display_options['header']['area']['format'] = 'filtered_html';
$handler->display->display_options['defaults']['footer'] = FALSE;
$handler->display->display_options['path'] = 'table_with_attached_charts_and_no_aggregation';

/* Display: Line Chart */
$handler = $view->new_display('attachment', 'Line Chart', 'attachment_1');
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'chart';
$handler->display->display_options['style_options']['type'] = 'line';
$handler->display->display_options['style_options']['label_field'] = 'field_optionlist';
$handler->display->display_options['style_options']['data_fields'] = array(
  'field_free_format_text' => 'field_free_format_text',
  'field_optionlist' => 0,
);
$handler->display->display_options['style_options']['field_colors'] = array(
  'field_optionlist' => '#008040',
  'field_free_format_text' => '#ff8000',
);
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['content'] = 'Below is a <strong>chart</strong> about the very same data (as in the table above), in the format of the "<strong>line chart</strong>", and which is "<strong>attached</strong>" to the tabular view above.';
$handler->display->display_options['header']['area']['format'] = 'filtered_html';
$handler->display->display_options['defaults']['footer'] = FALSE;
$handler->display->display_options['displays'] = array(
  'page' => 'page',
  'default' => 0,
);
$handler->display->display_options['attachment_position'] = 'after';

/* Display: Column Chart */
$handler = $view->new_display('attachment', 'Column Chart', 'attachment_2');
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'chart';
$handler->display->display_options['style_options']['type'] = 'column';
$handler->display->display_options['style_options']['label_field'] = 'field_optionlist';
$handler->display->display_options['style_options']['data_fields'] = array(
  'field_free_format_text' => 'field_free_format_text',
  'field_optionlist' => 0,
);
$handler->display->display_options['style_options']['field_colors'] = array(
  'field_optionlist' => '#2f7ed8',
  'field_free_format_text' => '#233a99',
);
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['content'] = 'Below is a <strong>yet another chart</strong> about the very same data (as in the table above), in the format of the "<strong>column chart</strong>", and which is "<strong>attached</strong>" (also) to the tabular view above.';
$handler->display->display_options['header']['area']['format'] = 'filtered_html';
$handler->display->display_options['defaults']['footer'] = FALSE;
$handler->display->display_options['displays'] = array(
  'page' => 'page',
  'default' => 0,
);
$handler->display->display_options['attachment_position'] = 'after';
_

上記の両方の例について(エクスポートされたビュー):これらは、環境にこれらのビューを正常にインポートできるようになる前に行う必要がある変更です:

  1. 2つのフィールド名のマシン名をフィールド名(エクスポートしたビューに表示されたもの)と一致するように変更します。

    • _field_optionlist_を_field_year_に変更します。
    • _field_free_format_text_を_field_agricultural_related_produ_に変更します。
  2. コンテンツタイプのマシン名をarticleからyearに変更します(これはエクスポートしたビューに表示されたマシン名です)。

  3. /* Filter criterion: Content: OptionList (field_optionlist) */を含む行を削除(削除)し、13、14、15などの値を含むその行に続く8行を削除します(結果を関連する3つだけに結果を制限するために追加のフィルターを追加しました)記事」)。

開示:私は Charts モジュールの共同メンテナです。

3
Pierre.Vriens